You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by hu...@apache.org on 2012/12/14 11:25:32 UTC
svn commit: r1421784 - /httpd/httpd/trunk/modules/lua/lua_apr.c
Author: humbedooh
Date: Fri Dec 14 10:25:31 2012
New Revision: 1421784
URL: http://svn.apache.org/viewvc?rev=1421784&view=rev
Log:
mod_lua: Oops, there was a stray 'int i' in the middle of lua_ap_regex.
Modified:
httpd/httpd/trunk/modules/lua/lua_apr.c
Modified: httpd/httpd/trunk/modules/lua/lua_apr.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_apr.c?rev=1421784&r1=1421783&r2=1421784&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_apr.c (original)
+++ httpd/httpd/trunk/modules/lua/lua_apr.c Fri Dec 14 10:25:31 2012
@@ -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);