[apr-util] Fix issues reported by scan-build.

This commit is contained in:
Andrey Volk
2020-02-14 18:39:15 +04:00
parent 5378eae101
commit a7cdf35b60
3 changed files with 6 additions and 4 deletions

View File

@@ -180,7 +180,9 @@ static TSort *tsort(TSort *pData,int nItems)
break;
}
}
pTail->pNext=NULL; /* unfudge the tail */
if (pTail) {
pTail->pNext = NULL; /* unfudge the tail */
}
return pHead;
}