]> granicus.if.org Git - apache/commitdiff
Fix for picky compilers.
authorGuenter Knauf <fuankg@apache.org>
Mon, 22 Nov 2010 05:02:56 +0000 (05:02 +0000)
committerGuenter Knauf <fuankg@apache.org>
Mon, 22 Nov 2010 05:02:56 +0000 (05:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1037605 13f79535-47bb-0310-9956-ffa450edef68

server/util_expr_eval.c

index 9ab4160615ec2aeaf512410efd039c1daf677fac..3b5cf1cb116dd4b23569152edcfcd952d803a86a 100644 (file)
@@ -743,7 +743,9 @@ AP_DECLARE(int) ap_expr_exec_re(request_rec *r, const ap_expr_info_t *info,
     ap_expr_eval_ctx ctx;
     int rc;
     int dont_vary = (info->flags & AP_EXPR_FLAGS_DONT_VARY);
-    const char *vary_this = NULL;
+    const char *tmp_source = NULL, *vary_this = NULL;
+    ap_regmatch_t tmp_pmatch[10];
+
     ctx.r = r;
     ctx.c = r->connection;
     ctx.s = r->server;
@@ -754,14 +756,11 @@ AP_DECLARE(int) ap_expr_exec_re(request_rec *r, const ap_expr_info_t *info,
     ctx.re_pmatch = pmatch;
     ctx.re_source = source;
     ctx.vary_this = dont_vary ? NULL : &vary_this;
-    ap_regmatch_t tmp_pmatch[10];
-    const char *tmp_source;
 
     if (!pmatch) {
         ctx.re_nmatch = 10;
         ctx.re_pmatch = tmp_pmatch;
         ctx.re_source = &tmp_source;
-        tmp_source = NULL;
     }
     else {
         AP_DEBUG_ASSERT(source != NULL);