summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
diff options
context:
space:
mode:
authorchengyemao <chengyemao>2004-05-08 03:48:37 (GMT)
committerchengyemao <chengyemao>2004-05-08 03:48:37 (GMT)
commitefdfbd52c69127bfe9afee0de0131237310e8348 (patch)
tree3c7a9562b21a8660d19f30068582203240a28754 /win/tclWinPipe.c
parent2619a4f0f4d47529d61a77107806594afb12a988 (diff)
downloadtcl-efdfbd52c69127bfe9afee0de0131237310e8348.zip
tcl-efdfbd52c69127bfe9afee0de0131237310e8348.tar.gz
tcl-efdfbd52c69127bfe9afee0de0131237310e8348.tar.bz2
Refix bug 789040 re-entered in rev 1.41
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r--win/tclWinPipe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index 469952e..37d6cce 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinPipe.c,v 1.43 2004/02/02 02:36:15 davygrvy Exp $
+ * RCS: @(#) $Id: tclWinPipe.c,v 1.44 2004/05/08 03:48:37 chengyemao Exp $
*/
#include "tclWinInt.h"
@@ -1581,9 +1581,10 @@ BuildCommandLine(
arg = executable;
} else {
arg = argv[i];
- Tcl_DStringAppend(&ds, " ", 1);
}
+ if(Tcl_DStringLength(&ds) > 0) Tcl_DStringAppend(&ds, " ", 1);
+
quote = 0;
if (arg[0] == '\0') {
quote = 1;