From 06189fe5af8b617e0801230a32c71cd6b96b6eae Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Mon, 21 Apr 2014 21:31:42 +0000 Subject: [PATCH] back to c89 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1588989 13f79535-47bb-0310-9956-ffa450edef68 --- modules/lua/lua_request.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c index 272936ecb3..445e3caf1f 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); }