From: Christophe Jaillet Date: Tue, 25 Aug 2015 16:57:13 +0000 (+0000) Subject: Fix an error spotted by sparse. X-Git-Tag: 2.5.0-alpha~2921 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08a3141d12ab89757e3a7c43a1521e703d55202d;p=apache Fix an error spotted by sparse. Without the parens, the 2 first bits are reseted, instead of just the one for CONDFLAG_NOCASE. This "bug" looks harmless as the first bit (CONDFLAG_NONE) is never tested. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1697735 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index b25acdec0d..d5d3d715ee 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -3439,7 +3439,7 @@ static const char *cmd_rewritecond(cmd_parms *cmd, void *in_dconf, "RewriteCond: NoCase option for non-regex pattern '%s' " "is not supported and will be ignored. (%s:%d)", a2, cmd->directive->filename, cmd->directive->line_num); - newcond->flags &= ~CONDFLAG_NOCASE; + newcond->flags &= ~(CONDFLAG_NOCASE); } newcond->pskip = a2 - newcond->pattern;