From: Daniel Gruno Date: Fri, 14 Dec 2012 10:25:31 +0000 (+0000) Subject: mod_lua: Oops, there was a stray 'int i' in the middle of lua_ap_regex. X-Git-Tag: 2.5.0-alpha~6012 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b84941551890038c9ecaf6f1db871215fdaadf53;p=apache mod_lua: Oops, there was a stray 'int i' in the middle of lua_ap_regex. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1421784 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/lua/lua_apr.c b/modules/lua/lua_apr.c index cf3f2b9cbb..7a8c43c01c 100644 --- a/modules/lua/lua_apr.c +++ b/modules/lua/lua_apr.c @@ -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(®ex, source, 10, matches, 0); if (x < 0) { lua_pushstring(L, err);