]> granicus.if.org Git - apache/commitdiff
set default pattern type using the enum value instead of
authorJeff Trawick <trawick@apache.org>
Wed, 1 Sep 2010 12:43:03 +0000 (12:43 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 1 Sep 2010 12:43:03 +0000 (12:43 +0000)
integer literal (Intel C compiler groans about this)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@991516 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_rewrite.c

index 3f2bd0cd347a5ce3bc710b56774fcab23481f5a5..ac08973f30647cd16ea07caaab18ccf95c8e5c52 100644 (file)
@@ -3167,7 +3167,7 @@ static const char *cmd_rewritecond(cmd_parms *cmd, void *in_dconf,
     }
 
     /* determine the pattern type */
-    newcond->ptype = 0;
+    newcond->ptype = CONDPAT_REGEX;
     if (*a2 && a2[1]) {
         if (!a2[2] && *a2 == '-') {
             switch (a2[1]) {