summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorrooneg <rooneg@13f79535-47bb-0310-9956-ffa450edef68>2005-12-10 22:29:40 +0000
committerrooneg <rooneg@13f79535-47bb-0310-9956-ffa450edef68>2005-12-10 22:29:40 +0000
commit355b3381a5b8085343a997aba357eeb966d03010 (patch)
tree3bc995ce3d1ba4f2e9beee2a3f782fa1e0126cd6 /threadproc
parenteee1a58b068c749a1e22c9206742326f56a4233e (diff)
downloadlibapr-355b3381a5b8085343a997aba357eeb966d03010.tar.gz
Fix passing "" as an argument to a new program on windows.
* threadproc/win32/proc.c (apr_proc_create): Pass empty strings into CreateProcess instead of filtering them out. * CHANGES: Note change. Submitted by: Philip Martin <philip codematters.co.uk> Reviewed by: wrowe, rooneg git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@355792 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r--threadproc/win32/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/threadproc/win32/proc.c b/threadproc/win32/proc.c
index df75b836b..63d7e9cc5 100644
--- a/threadproc/win32/proc.c
+++ b/threadproc/win32/proc.c
@@ -460,7 +460,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new,
/* Handle the args, seperate from argv0 */
cmdline = "";
for (i = 1; args && args[i]; ++i) {
- if (has_space(args[i])) {
+ if (has_space(args[i]) || !args[i][0]) {
cmdline = apr_pstrcat(pool, cmdline, " \"", args[i], "\"", NULL);
}
else {