]> granicus.if.org Git - apache/commitdiff
Like r1532122: Axe needless string duplication in
authorJeff Trawick <trawick@apache.org>
Sat, 19 Oct 2013 13:59:31 +0000 (13:59 +0000)
committerJeff Trawick <trawick@apache.org>
Sat, 19 Oct 2013 13:59:31 +0000 (13:59 +0000)
               setup for call to apr_proc_create().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1533765 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_pphrase.c

index ca8e130fb9133db35a8aaac5a33e09b71a713666..2a63ecd17a5c76a722b7153016bee1e313f976f2 100644 (file)
@@ -598,12 +598,10 @@ static apr_status_t ssl_pipe_child_create(apr_pool_t *p, const char *progname)
                                    APR_FULL_BLOCK,
                                    APR_NO_PIPE)) == APR_SUCCESS)) {
         char **args;
-        const char *pname;
 
         apr_tokenize_to_argv(progname, &args, p);
-        pname = apr_pstrdup(p, args[0]);
         procnew = (apr_proc_t *)apr_pcalloc(p, sizeof(*procnew));
-        rc = apr_proc_create(procnew, pname, (const char * const *)args,
+        rc = apr_proc_create(procnew, args[0], (const char * const *)args,
                              NULL, procattr, p);
         if (rc == APR_SUCCESS) {
             /* XXX: not sure if we aught to...