From: William A. Rowe Jr Date: Sun, 21 Oct 2001 06:37:25 +0000 (+0000) Subject: Grab this pointer, before it goes NULL X-Git-Tag: 2.0.27~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e559cd2c2e771a54e5592c8e1ebdc2192fd32c6c;p=apache Grab this pointer, before it goes NULL git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91618 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/arch/win32/mod_win32.c b/modules/arch/win32/mod_win32.c index 8b16ce2cbd..fe1a2b5f5d 100644 --- a/modules/arch/win32/mod_win32.c +++ b/modules/arch/win32/mod_win32.c @@ -307,9 +307,9 @@ static apr_array_header_t *split_argv(apr_pool_t *p, const char *interp, const c arg = (const char**)apr_array_push(args); if (*ch == '%') { char *repl = apr_pstrdup(p, cgiprg); + *arg = repl; while ((repl = strchr(repl, '/'))) *repl++ = '\\'; - *arg = repl; } else *arg = cgiprg; @@ -323,9 +323,9 @@ static apr_array_header_t *split_argv(apr_pool_t *p, const char *interp, const c arg = (const char**)apr_array_push(args); if (*(ch + 1) == '%') { char *repl = apr_pstrdup(p, cgiprg); + *arg = repl; while ((repl = strchr(repl, '/'))) *repl++ = '\\'; - *arg = repl; } else *arg = cgiprg;