diff options
author | das <das> | 2009-09-07 07:29:03 (GMT) |
---|---|---|
committer | das <das> | 2009-09-07 07:29:03 (GMT) |
commit | b1a164c0a1f1822b82ed874aa176a5e3da80122e (patch) | |
tree | 482f0c745521d3a4c67098b23132148476c35fbc /generic/tkMenu.c | |
parent | 71419c7600e07b055614f65a8617ff25e63c1603 (diff) | |
download | tk-b1a164c0a1f1822b82ed874aa176a5e3da80122e.zip tk-b1a164c0a1f1822b82ed874aa176a5e3da80122e.tar.gz tk-b1a164c0a1f1822b82ed874aa176a5e3da80122e.tar.bz2 |
* generic/tkFocus.c: fix potential null dereference flagged by clang
* generic/tkMenu.c: static analyzer.
* generic/tkTextBTree.c:
* generic/tkTextDisp.c:
* generic/tkTextIndex.c:
* generic/tkConsole.c: silence false positives from clang static
* generic/tkTest.c: analyzer about potential null dereference.
* generic/tkText.c:
* generic/tkTextBTree.c:
* generic/tkTextTag.c:
* generic/tkVisual.c:
Diffstat (limited to 'generic/tkMenu.c')
-rw-r--r-- | generic/tkMenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c index ac90f0a..d46f622 100644 --- a/generic/tkMenu.c +++ b/generic/tkMenu.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMenu.c,v 1.51 2009/04/10 16:16:02 das Exp $ + * RCS: @(#) $Id: tkMenu.c,v 1.52 2009/09/07 07:29:04 das Exp $ */ /* @@ -2060,7 +2060,7 @@ ConfigureMenuCloneEntries( } if (cascadeEntryChanged && (mePtr->namePtr != NULL)) { - if (cascadeMenuRefPtr->menuPtr != NULL) { + if (cascadeMenuRefPtr && cascadeMenuRefPtr->menuPtr != NULL) { Tcl_Obj *newObjv[2]; Tcl_Obj *newCloneNamePtr; Tcl_Obj *pathNamePtr = Tcl_NewStringObj( |