]> granicus.if.org Git - apache/commitdiff
core: '!x == 0' => 'x != 0' to avoid a compiler warning (suggesting parens).
authorYann Ylavic <ylavic@apache.org>
Wed, 30 Mar 2016 11:30:50 +0000 (11:30 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 30 Mar 2016 11:30:50 +0000 (11:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1737103 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index ddc7a2707d9c6935897009a3f068ee72ef956997..169dd5c7bb860b7c8d3e72381135ce2a8fd7d009 100644 (file)
@@ -2407,7 +2407,7 @@ static const char *dirsection(cmd_parms *cmd, void *mconfig, const char *arg)
             return "Regex could not be compiled";
         }
     }
-    else if (!strcmp(cmd->path, "/") == 0)
+    else if (strcmp(cmd->path, "/") != 0)
     {
         char *newpath;