summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-04-25 01:02:13 (GMT)
committerhobbs <hobbs>2000-04-25 01:02:13 (GMT)
commit1932108285ef02eca43acfbaf2470c45592739e5 (patch)
tree87854b3082a066e843657e369658b0b9dced2240
parentdb662c0d7c33a282d9a79fc935fd7ced68b3ab2a (diff)
downloadtk-1932108285ef02eca43acfbaf2470c45592739e5.zip
tk-1932108285ef02eca43acfbaf2470c45592739e5.tar.gz
tk-1932108285ef02eca43acfbaf2470c45592739e5.tar.bz2
* mac/tkMacWm.c (Tk_WmCmd): initialized gotToplevel in
colormapwindows case (bug found by Reasoning, Inc's automated code testing).
-rw-r--r--mac/tkMacWm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mac/tkMacWm.c b/mac/tkMacWm.c
index 825aae4..8ee7e6c 100644
--- a/mac/tkMacWm.c
+++ b/mac/tkMacWm.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacWm.c,v 1.9 2000/02/10 08:57:11 jingham Exp $
+ * RCS: @(#) $Id: tkMacWm.c,v 1.10 2000/04/25 01:02:13 hobbs Exp $
*/
#include <Gestalt.h>
@@ -810,7 +810,7 @@ Tk_WmCmd(
&& (length >= 3)) {
TkWindow **cmapList;
TkWindow *winPtr2;
- int i, windowArgc, gotToplevel;
+ int i, windowArgc, gotToplevel = 0;
char **windowArgv;
if ((argc != 3) && (argc != 4)) {