]> granicus.if.org Git - apache/commitdiff
mod_lua: Oops, there was a stray 'int i' in the middle of lua_ap_regex.
authorDaniel Gruno <humbedooh@apache.org>
Fri, 14 Dec 2012 10:25:31 +0000 (10:25 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Fri, 14 Dec 2012 10:25:31 +0000 (10:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1421784 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/lua_apr.c

index cf3f2b9cbb3deb47999a9bc7cfdaa64171ea1022..7a8c43c01ce9a4f573b3d102a23732c0ad40076a 100644 (file)
@@ -408,7 +408,7 @@ static int lua_ap_regex(lua_State *L)
 {
     /*~~~~~~~~~~~~~~~~~~*/
     request_rec *r;
-    int x = 0;
+    int x = 0, i;
     const char *pattern, *source, *err;
     ap_regex_t regex;
     ap_regmatch_t matches[10];
@@ -425,7 +425,6 @@ static int lua_ap_regex(lua_State *L)
         return 0;
     }
 
-    int i;
     x = ap_regexec(&regex, source, 10, matches, 0);
     if (x < 0) {
         lua_pushstring(L, err);