diff options
author | das <das> | 2009-06-30 00:56:29 (GMT) |
---|---|---|
committer | das <das> | 2009-06-30 00:56:29 (GMT) |
commit | cddcc530147879e27bcf91025fc6728fb087d8e2 (patch) | |
tree | 486c789f1ba88a841ef3162ce8911a86ac67a5ff /generic/tkUndo.c | |
parent | 8f9b8fd63b4da5f6f27b46c438c89f2baa15f0e8 (diff) | |
download | tk-cddcc530147879e27bcf91025fc6728fb087d8e2.zip tk-cddcc530147879e27bcf91025fc6728fb087d8e2.tar.gz tk-cddcc530147879e27bcf91025fc6728fb087d8e2.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.
Diffstat (limited to 'generic/tkUndo.c')
-rw-r--r-- | generic/tkUndo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tkUndo.c b/generic/tkUndo.c index 8371f04..1150cef 100644 --- a/generic/tkUndo.c +++ b/generic/tkUndo.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: tkUndo.c,v 1.15 2009/02/06 08:12:07 das Exp $ + * RCS: @(#) $Id: tkUndo.c,v 1.16 2009/06/30 00:56:29 das Exp $ */ #include "tkInt.h" @@ -394,6 +394,7 @@ TkUndoSetDepth( prevelem = elem; elem = elem->next; } + CLANG_ASSERT(prevelem); prevelem->next = NULL; while (elem != NULL) { prevelem = elem; |