summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-06-08 08:26:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-06-08 08:26:58 (GMT)
commit16f3f234e8500f5f71e4d9321689a8bdf9efc809 (patch)
tree5d0ad393849e7c2d6b1b88d3f6d413ff2b505f14 /win/tclWinPipe.c
parent73a3dfdeeabb1a43c73101b4b6a9826f83866b32 (diff)
downloadtcl-16f3f234e8500f5f71e4d9321689a8bdf9efc809.zip
tcl-16f3f234e8500f5f71e4d9321689a8bdf9efc809.tar.gz
tcl-16f3f234e8500f5f71e4d9321689a8bdf9efc809.tar.bz2
Better UTF-8 surrogate handling, only functional when TCL_UTF_MAX>3
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r--win/tclWinPipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index fe0ed2d..4b372a5 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -1479,7 +1479,7 @@ BuildCommandLine(
quote = 1;
} else {
int count;
- Tcl_UniChar ch;
+ Tcl_UniChar ch = 0;
for (start = arg; *start != '\0'; start += count) {
count = TclUtfToUniChar(start, &ch);