]> granicus.if.org Git - apache/commitdiff
Grab this pointer, before it goes NULL
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 21 Oct 2001 06:37:25 +0000 (06:37 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 21 Oct 2001 06:37:25 +0000 (06:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91618 13f79535-47bb-0310-9956-ffa450edef68

modules/arch/win32/mod_win32.c

index 8b16ce2cbda77aba657dce19d95afe5610bd9358..fe1a2b5f5dfb68007d71953a99d310e1f3bb6bfd 100644 (file)
@@ -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;