From: Jeff Trawick Date: Sat, 19 Oct 2013 13:59:31 +0000 (+0000) Subject: Like r1532122: Axe needless string duplication in X-Git-Tag: 2.5.0-alpha~4911 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cc659ec4052c535a4c4d282e9925335ac385fba;p=apache Like r1532122: Axe needless string duplication in 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 --- diff --git a/modules/ssl/ssl_engine_pphrase.c b/modules/ssl/ssl_engine_pphrase.c index ca8e130fb9..2a63ecd17a 100644 --- a/modules/ssl/ssl_engine_pphrase.c +++ b/modules/ssl/ssl_engine_pphrase.c @@ -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...