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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user