From e559cd2c2e771a54e5592c8e1ebdc2192fd32c6c Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Sun, 21 Oct 2001 06:37:25 +0000 Subject: [PATCH] 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 --- modules/arch/win32/mod_win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.40.0