diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-02-25 21:10:33 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-02-25 21:10:33 (GMT) |
commit | 57d9952ece8f81fc6802097bace965a196bb849b (patch) | |
tree | d57232dd97b61e8123f256c0b77a052769a0aa3f /generic/tclCompile.c | |
parent | 1eba3f12e0ade2e605ab5a69642e97f7b2ab4214 (diff) | |
download | tcl-57d9952ece8f81fc6802097bace965a196bb849b.zip tcl-57d9952ece8f81fc6802097bace965a196bb849b.tar.gz tcl-57d9952ece8f81fc6802097bace965a196bb849b.tar.bz2 |
Finish complete fix, all corner-cases correct now. Also spurious UTF-8 testcase failure (as seen on travis) fixed now.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r-- | generic/tclCompile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c index f6e6b81..d940ff7 100644 --- a/generic/tclCompile.c +++ b/generic/tclCompile.c @@ -1744,7 +1744,7 @@ TclWordKnownAtCompileTime( case TCL_TOKEN_BS: if (tempPtr != NULL) { - char utfBuf[TCL_UTF_MAX]; + char utfBuf[TCL_UTF_MAX] = ""; int length = TclParseBackslash(tokenPtr->start, tokenPtr->size, NULL, utfBuf); @@ -2358,7 +2358,7 @@ TclCompileTokens( { Tcl_DString textBuffer; /* Holds concatenated chars from adjacent * TCL_TOKEN_TEXT, TCL_TOKEN_BS tokens. */ - char buffer[TCL_UTF_MAX]; + char buffer[TCL_UTF_MAX] = ""; int i, numObjsToConcat, length, adjust; unsigned char *entryCodeNext = envPtr->codeNext; #define NUM_STATIC_POS 20 |