]> granicus.if.org Git - apache/commitdiff
remove useless check for current == NULL; if it is NULL, a
authorJeff Trawick <trawick@apache.org>
Fri, 20 Aug 2010 20:39:02 +0000 (20:39 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 20 Aug 2010 20:39:02 +0000 (20:39 +0000)
segfault will occur right before the function returns anyway
(IOW, caller must not pass in NULL for that arg)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@987629 13f79535-47bb-0310-9956-ffa450edef68

server/config.c

index 5f0ae48cdf12001edcd4aca938e474104e32adb1..0549782ff22d65f554bd7efc73ed43a9637b59ad 100644 (file)
@@ -1186,7 +1186,7 @@ AP_DECLARE(const char *) ap_build_cont_config(apr_pool_t *p,
             sub_tree = *curr_parent;
         }
 
-        if (sub_tree == NULL && current != NULL) {
+        if (sub_tree == NULL) {
             sub_tree = *current;
         }
     }