You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2010/08/20 22:39:02 UTC

svn commit: r987629 - /httpd/httpd/trunk/server/config.c

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;
         }
     }