summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-02-27 21:29:43 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-02-27 21:29:43 (GMT)
commit050b6c3d5f632fea7bf549688c54be65fba7bee2 (patch)
tree007b045355fdadddb97c53f8d0d714ef29a351ed /generic/tclUtil.c
parentf04b875d88bbe9cd4d2114d60c194be01a7c9e04 (diff)
parent57d9952ece8f81fc6802097bace965a196bb849b (diff)
downloadtcl-050b6c3d5f632fea7bf549688c54be65fba7bee2.zip
tcl-050b6c3d5f632fea7bf549688c54be65fba7bee2.tar.gz
tcl-050b6c3d5f632fea7bf549688c54be65fba7bee2.tar.bz2
Fix [bd94500678e837d7]: SEGFAULT by conversion of unicode (out of BMP) to byte-array
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r--generic/tclUtil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index 120f315..1e7c9a9 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -1654,7 +1654,7 @@ Tcl_Backslash(
int *readPtr) /* Fill in with number of characters read from
* src, unless NULL. */
{
- char buf[TCL_UTF_MAX];
+ char buf[TCL_UTF_MAX] = "";
Tcl_UniChar ch = 0;
Tcl_UtfBackslash(src, readPtr, buf);