1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

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
This commit is contained in:
Daniel Gruno
2012-12-14 10:25:31 +00:00
parent df178d1e41
commit b849415518

View 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);