httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r987629 - /httpd/httpd/trunk/server/config.c
Date Fri, 20 Aug 2010 20:39:02 GMT
Author: trawick
Date: Fri Aug 20 20:39:02 2010
New Revision: 987629

URL: http://svn.apache.org/viewvc?rev=987629&view=rev
Log:
remove useless check for current == NULL; if it is NULL, a
segfault will occur right before the function returns anyway
(IOW, caller must not pass in NULL for that arg)

Modified:
    httpd/httpd/trunk/server/config.c

Modified: httpd/httpd/trunk/server/config.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/config.c?rev=987629&r1=987628&r2=987629&view=diff
==============================================================================
--- httpd/httpd/trunk/server/config.c (original)
+++ httpd/httpd/trunk/server/config.c Fri Aug 20 20:39:02 2010
@@ -1186,7 +1186,7 @@ AP_DECLARE(const char *) ap_build_cont_c
             sub_tree = *curr_parent;
         }
 
-        if (sub_tree == NULL && current != NULL) {
+        if (sub_tree == NULL) {
             sub_tree = *current;
         }
     }



Mime
View raw message