diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-08 22:51:16 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-08 22:51:16 (GMT) |
commit | e6a53eb44dab26c44e01f4620467c2c5ae0f27e5 (patch) | |
tree | 59277fc50a99e395168027e1ffa8bbe0be18a7cb /generic/tclZlib.c | |
parent | e30b8a9185f7d16573e849b3df2ec1d1791439ea (diff) | |
parent | 2b821c69deba46a4f4634dbbfa6b5b34b6036f9c (diff) | |
download | tcl-e6a53eb44dab26c44e01f4620467c2c5ae0f27e5.zip tcl-e6a53eb44dab26c44e01f4620467c2c5ae0f27e5.tar.gz tcl-e6a53eb44dab26c44e01f4620467c2c5ae0f27e5.tar.bz2 |
Merge 8.7
Diffstat (limited to 'generic/tclZlib.c')
-rw-r--r-- | generic/tclZlib.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c index 33ab2e5..94cf9e8 100644 --- a/generic/tclZlib.c +++ b/generic/tclZlib.c @@ -591,7 +591,7 @@ SetInflateDictionary( Tcl_Obj *compDictObj) { if (compDictObj != NULL) { - size_t length; + size_t length = 0; unsigned char *bytes = TclGetByteArrayFromObj(compDictObj, &length); return inflateSetDictionary(strm, bytes, length); @@ -605,7 +605,7 @@ SetDeflateDictionary( Tcl_Obj *compDictObj) { if (compDictObj != NULL) { - size_t length; + size_t length = 0; unsigned char *bytes = TclGetByteArrayFromObj(compDictObj, &length); return deflateSetDictionary(strm, bytes, length); @@ -1190,7 +1190,7 @@ Tcl_ZlibStreamPut( ZlibStreamHandle *zshPtr = (ZlibStreamHandle *) zshandle; char *dataTmp = NULL; int e; - size_t size, outSize, toStore; + size_t size = 0, outSize, toStore; if (zshPtr->streamEnd) { if (zshPtr->interp) { @@ -1314,10 +1314,10 @@ Tcl_ZlibStreamGet( { ZlibStreamHandle *zshPtr = (ZlibStreamHandle *) zshandle; int e, i, listLen; - size_t itemLen, dataPos = 0; + size_t itemLen = 0, dataPos = 0; Tcl_Obj *itemObj; unsigned char *dataPtr, *itemPtr; - size_t existing; + size_t existing = 0; /* * Getting beyond the of stream, just return empty string. @@ -1929,7 +1929,7 @@ ZlibCmd( Tcl_Obj *const objv[]) { int command, i, option, level = -1; - size_t dlen, start, buffersize = 0; + size_t dlen = 0, start, buffersize = 0; Tcl_WideInt wideLen; Byte *data; Tcl_Obj *headerDictObj; @@ -2740,7 +2740,7 @@ ZlibStreamAddCmd( */ if (compDictObj != NULL) { - size_t len; + size_t len = 0; (void) TclGetByteArrayFromObj(compDictObj, &len); if (len == 0) { @@ -2844,7 +2844,7 @@ ZlibStreamPutCmd( */ if (compDictObj != NULL) { - size_t len; + size_t len = 0; (void) TclGetByteArrayFromObj(compDictObj, &len); if (len == 0) { |