mirror of
https://github.com/apache/httpd.git
synced 2025-08-15 23:27:39 +00:00
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
This commit is contained in:
@ -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...
|
||||
|
Reference in New Issue
Block a user