From: Daniel Gruno Date: Wed, 23 Apr 2014 14:42:18 +0000 (+0000) Subject: C89 and such X-Git-Tag: 2.4.10~293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10f596b210292101908073e46626802ebe7917ce;p=apache C89 and such git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1589430 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c index 9b1926df92..8beb70e464 100644 --- a/modules/lua/lua_request.c +++ b/modules/lua/lua_request.c @@ -320,10 +320,11 @@ static int req_parseargs(lua_State *L) /* ap_lua_binstrstr: Binary strstr function for uploaded data with NULL bytes */ static char* ap_lua_binstrstr (const char * haystack, size_t hsize, const char* needle, size_t nsize) { + size_t p; if (haystack == NULL) return NULL; if (needle == NULL) return NULL; if (hsize < nsize) return NULL; - for (size_t p = 0; p <= (hsize - nsize); ++p) { + for (p = 0; p <= (hsize - nsize); ++p) { if (memcmp(haystack + p, needle, nsize) == 0) { return (char*) (haystack + p); }