summaryrefslogtreecommitdiffstats
path: root/generic/tkMenu.c
diff options
context:
space:
mode:
authoruid38226 <uid38226>2002-01-31 21:05:27 (GMT)
committeruid38226 <uid38226>2002-01-31 21:05:27 (GMT)
commite51b469b07e385f8d952e1e83fbbb98be5a71a79 (patch)
tree2ee8b3870e91409b4a2075e48216b96a0c9d60e8 /generic/tkMenu.c
parent9ba6d7b21fed9e61a8e0bf74932aea176849a7f7 (diff)
downloadtk-e51b469b07e385f8d952e1e83fbbb98be5a71a79.zip
tk-e51b469b07e385f8d952e1e83fbbb98be5a71a79.tar.gz
tk-e51b469b07e385f8d952e1e83fbbb98be5a71a79.tar.bz2
Correct and test for logic error when cloning menus. Bug 508988
Diffstat (limited to 'generic/tkMenu.c')
-rw-r--r--generic/tkMenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c
index 773b1e2..070c553 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.15 2002/01/25 21:09:37 dgp Exp $
+ * RCS: @(#) $Id: tkMenu.c,v 1.16 2002/01/31 21:05:27 uid38226 Exp $
*/
/*
@@ -1998,7 +1998,7 @@ ConfigureMenuCloneEntries(interp, menuPtr, index, objc, objv)
oldCascadeName = Tcl_GetStringFromObj(oldCascadePtr,
NULL);
cascadeEntryChanged = (strcmp(oldCascadeName, newCascadeName)
- == 0);
+ != 0);
}
if (oldCascadePtr != NULL) {
Tcl_DecrRefCount(oldCascadePtr);