]> granicus.if.org Git - apache/commitdiff
quiet a gcc warning by adding () around && within ||
authorJeff Trawick <trawick@apache.org>
Thu, 20 Feb 2003 14:12:07 +0000 (14:12 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 20 Feb 2003 14:12:07 +0000 (14:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98741 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_alias.c

index c7f4c7a9bbbbbc2afa141406266ba351c457f2cc..65388807b216860beb8f936f1adf229fa3a14b44 100644 (file)
@@ -177,8 +177,8 @@ static const char *add_alias_internal(cmd_parms *cmd, void *dummy,
         for (i = 0; i < conf->aliases->nelts - 1; ++i) {
             alias_entry *p = &entries[i];
 
-            if (  !p->regexp &&  alias_matches(f, p->fake) > 0
-                || p->regexp && !ap_regexec(p->regexp, f, 0, NULL, 0)) {
+            if (  (!p->regexp &&  alias_matches(f, p->fake) > 0)
+                || (p->regexp && !ap_regexec(p->regexp, f, 0, NULL, 0))) {
                 ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server,
                              "The %s directive at line %d will probably never "
                              "match because it overlaps an earlier %sAlias%s.",