summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.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 /generic/tclStringObj.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 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index 4a3b6f1..0cafffb 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -1709,7 +1709,7 @@ Tcl_AppendFormatToObj(
#endif
int newXpg, numChars, allocSegment = 0, segmentLimit, segmentNumBytes;
Tcl_Obj *segment;
- Tcl_UniChar ch;
+ Tcl_UniChar ch = 0;
int step = TclUtfToUniChar(format, &ch);
format += step;
@@ -2693,7 +2693,7 @@ TclStringObjReverse(
Tcl_Obj *objPtr)
{
String *stringPtr;
- Tcl_UniChar ch;
+ Tcl_UniChar ch = 0;
if (TclIsPureByteArray(objPtr)) {
int numBytes;