diff options
author | das <das> | 2003-12-17 18:38:28 (GMT) |
---|---|---|
committer | das <das> | 2003-12-17 18:38:28 (GMT) |
commit | 35f41ed6ed252872b5bcb10ea8de0258f703cb8b (patch) | |
tree | c0bbe70a68e36150ccd8355425e43a895d7d8f9a | |
parent | c177e42a7c05d97d15d2b710a36a38f2ca1b7ca5 (diff) | |
download | tcl-35f41ed6ed252872b5bcb10ea8de0258f703cb8b.zip tcl-35f41ed6ed252872b5bcb10ea8de0258f703cb8b.tar.gz tcl-35f41ed6ed252872b5bcb10ea8de0258f703cb8b.tar.bz2 |
* generic/tclBinary.c (DeleteScanNumberCache): fixed crashing bug
when numeric scan-value cache contains NULL value.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/tclBinary.c | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2003-12-17 Daniel Steffen <das@users.sourceforge.net> + + * generic/tclBinary.c (DeleteScanNumberCache): fixed crashing bug + when numeric scan-value cache contains NULL value. + 2003-12-12 Vince Darley <vincentdarley@users.sourceforge.net> * generic/tclCmdAH.c: fix to normalization of non-existent user 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); |