Commit a305a816 authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  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
parent 3891957f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;