summaryrefslogtreecommitdiffstats
path: root/generic/tclBinary.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-30 15:27:43 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-30 15:27:43 (GMT)
commit60d0ed0069fe3451d720658c997edf94b10961a0 (patch)
tree1c86fc4c7d06a0661c6ce20bbe1e4f53b9c3552f /generic/tclBinary.c
parent8139a8a59564bd6aea41fba879e3d394c740aeff (diff)
downloadtcl-60d0ed0069fe3451d720658c997edf94b10961a0.zip
tcl-60d0ed0069fe3451d720658c997edf94b10961a0.tar.gz
tcl-60d0ed0069fe3451d720658c997edf94b10961a0.tar.bz2
Initialize Tcl_UniChar's, in case we are handling surrogates (however unlikely).
Diffstat (limited to 'generic/tclBinary.c')
-rw-r--r--generic/tclBinary.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c
index e83689f..923b536 100644
--- a/generic/tclBinary.c
+++ b/generic/tclBinary.c
@@ -2949,7 +2949,7 @@ BinaryDecodeUu(
unsigned char *begin, *cursor;
int i, index, size, pure = 1, count = 0, strict = 0, lineLen;
unsigned char c;
- Tcl_UniChar ch;
+ Tcl_UniChar ch = 0;
enum { OPT_STRICT };
static const char *const optStrings[] = { "-strict", NULL };
@@ -3123,7 +3123,7 @@ BinaryDecode64(
unsigned char *cursor = NULL;
int pure = 1, strict = 0;
int i, index, size, cut = 0, count = 0;
- Tcl_UniChar ch;
+ Tcl_UniChar ch = 0;
enum { OPT_STRICT };
static const char *const optStrings[] = { "-strict", NULL };