apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1836231 - /apr/apr/trunk/hooks/apr_hooks.c
Date Wed, 18 Jul 2018 20:34:06 GMT
Author: minfrin
Date: Wed Jul 18 20:34:06 2018
New Revision: 1836231

URL: http://svn.apache.org/viewvc?rev=1836231&view=rev
Log:
Remove dereference of null pointer.

Modified:
    apr/apr/trunk/hooks/apr_hooks.c

Modified: apr/apr/trunk/hooks/apr_hooks.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/hooks/apr_hooks.c?rev=1836231&r1=1836230&r2=1836231&view=diff
==============================================================================
--- apr/apr/trunk/hooks/apr_hooks.c (original)
+++ apr/apr/trunk/hooks/apr_hooks.c Wed Jul 18 20:34:06 2018
@@ -180,7 +180,8 @@ static TSort *tsort(TSort *pData,int nIt
                     break;
                 }
     }
-    pTail->pNext=NULL;  /* unfudge the tail */
+    if(pTail)
+        pTail->pNext=NULL;  /* unfudge the tail */
     return pHead;
 }
 



Mime
View raw message