]> granicus.if.org Git - apache/commitdiff
* Only unset if we have a table. This can happen if undefine occurs before define.
authorRuediger Pluem <rpluem@apache.org>
Fri, 21 Jan 2011 08:01:09 +0000 (08:01 +0000)
committerRuediger Pluem <rpluem@apache.org>
Fri, 21 Jan 2011 08:01:09 +0000 (08:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1061669 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index a815fb4dc23edde512f71400bf8357b9ae7af530..90b9290af737697de68a76f3c65111117c32f051 100644 (file)
@@ -1243,7 +1243,9 @@ static const char *unset_define(cmd_parms *cmd, void *dummy,
         }
     }
 
-    apr_table_unset(server_config_defined_vars, name);
+    if (server_config_defined_vars) {
+        apr_table_unset(server_config_defined_vars, name);
+    }
 
     return NULL;
 }