diff options
author | das <das@noemail.net> | 2003-12-17 18:38:27 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2003-12-17 18:38:27 (GMT) |
commit | 4dcff8cf1699dcf549314b9ba41a030a8d7bc8b3 (patch) | |
tree | c0bbe70a68e36150ccd8355425e43a895d7d8f9a /generic/tclBinary.c | |
parent | bb9fc54120458759ea3b71bb5269abdc837ff859 (diff) | |
download | tcl-4dcff8cf1699dcf549314b9ba41a030a8d7bc8b3.zip tcl-4dcff8cf1699dcf549314b9ba41a030a8d7bc8b3.tar.gz tcl-4dcff8cf1699dcf549314b9ba41a030a8d7bc8b3.tar.bz2 |
* generic/tclBinary.c (DeleteScanNumberCache): fixed crashing bug
when numeric scan-value cache contains NULL value.
FossilOrigin-Name: 97b03927f2ee4c4d016c93d818969042f609c42d
Diffstat (limited to 'generic/tclBinary.c')
-rw-r--r-- | generic/tclBinary.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c index 6769b4e..546a35b 100644 --- a/generic/tclBinary.c +++ b/generic/tclBinary.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBinary.c,v 1.13.2.1 2003/12/02 09:31:54 dkf Exp $ + * RCS: @(#) $Id: tclBinary.c,v 1.13.2.2 2003/12/17 18:38:28 das Exp $ */ #include "tclInt.h" @@ -1736,7 +1736,9 @@ DeleteScanNumberCache(numberCachePtr) while (hEntry != NULL) { register Tcl_Obj *value = (Tcl_Obj *) Tcl_GetHashValue(hEntry); - Tcl_DecrRefCount(value); + if (value != NULL) { + Tcl_DecrRefCount(value); + } hEntry = Tcl_NextHashEntry(&search); } Tcl_DeleteHashTable(numberCachePtr); |