From: Yann Ylavic Date: Wed, 30 Mar 2016 11:30:50 +0000 (+0000) Subject: core: '!x == 0' => 'x != 0' to avoid a compiler warning (suggesting parens). X-Git-Tag: 2.5.0-alpha~1813 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fd7a9a722eef5b2f779f310c18b917ea9269c25;p=apache core: '!x == 0' => 'x != 0' to avoid a compiler warning (suggesting parens). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1737103 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index ddc7a2707d..169dd5c7bb 100644 --- a/server/core.c +++ b/server/core.c @@ -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;