httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1421784 - /httpd/httpd/trunk/modules/lua/lua_apr.c
Date Fri, 14 Dec 2012 10:25:32 GMT
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(&regex, source, 10, matches, 0);
     if (x < 0) {
         lua_pushstring(L, err);



Mime
View raw message