]> granicus.if.org Git - apache/commitdiff
Move two variable assignments off the fast path.
authorGraham Leggett <minfrin@apache.org>
Fri, 18 Apr 2014 11:47:06 +0000 (11:47 +0000)
committerGraham Leggett <minfrin@apache.org>
Fri, 18 Apr 2014 11:47:06 +0000 (11:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1588448 13f79535-47bb-0310-9956-ffa450edef68

server/util_expr_eval.c

index d99212001f90d12c82ad2075bd7d4e69e7698de3..aa7e971279e3e6f78e00bcd3cd1408b7d58a95bf 100644 (file)
@@ -885,7 +885,7 @@ AP_DECLARE(const char *) ap_expr_str_exec_re(request_rec *r,
 {
     ap_expr_eval_ctx_t ctx;
     int dont_vary, rc;
-    const char *tmp_source = NULL, *vary_this = NULL;
+    const char *tmp_source, *vary_this;
     ap_regmatch_t tmp_pmatch[AP_MAX_REG_MATCH];
     const char *result;
 
@@ -897,6 +897,9 @@ AP_DECLARE(const char *) ap_expr_str_exec_re(request_rec *r,
         return (const char *)info->root_node->node_arg1;
     }
 
+    tmp_source = NULL;
+    vary_this = NULL;
+
     dont_vary = (info->flags & AP_EXPR_FLAG_DONT_VARY);
 
     ctx.r = r;