diff options
author | das <das@noemail.net> | 2009-06-30 00:56:29 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2009-06-30 00:56:29 (GMT) |
commit | 5592502908118128224c1c67e7ac4c84d380172a (patch) | |
tree | 486c789f1ba88a841ef3162ce8911a86ac67a5ff /generic/tkConfig.c | |
parent | a6401db9ac290e17faaf7897ec75bf07ef5b743f (diff) | |
download | tk-5592502908118128224c1c67e7ac4c84d380172a.zip tk-5592502908118128224c1c67e7ac4c84d380172a.tar.gz tk-5592502908118128224c1c67e7ac4c84d380172a.tar.bz2 |
* generic/tkInt.h: add assert macros for clang static
analyzer and redefine Tcl_Panic to
assert after panic in clang PURIFY
builds.
* generic/tkImgPhInstance.c: small fixes to make clang static
* generic/tkTextDisp.c: analyzer happier.
* generic/tkConfig.c: add clang assert for false positives
* generic/tkUndo.c: from static analyzer.
FossilOrigin-Name: 96416799b4809776126b367d1f4f0b409dd37b96
Diffstat (limited to 'generic/tkConfig.c')
-rw-r--r-- | generic/tkConfig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tkConfig.c b/generic/tkConfig.c index 27a48cb..ccdfdb0 100644 --- a/generic/tkConfig.c +++ b/generic/tkConfig.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkConfig.c,v 1.30 2009/02/03 23:55:47 nijtmans Exp $ + * RCS: @(#) $Id: tkConfig.c,v 1.31 2009/06/30 00:56:29 das Exp $ */ /* @@ -1435,6 +1435,7 @@ Tk_RestoreSavedOptions( if (specPtr->internalOffset >= 0) { register char *ptr = (char *) &savePtr->items[i].internalForm; + CLANG_ASSERT(internalPtr); switch (specPtr->type) { case TK_OPTION_BOOLEAN: *((int *) internalPtr) = *((int *) ptr); |