summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-09-06 19:02:01 (GMT)
committerhobbs <hobbs>2000-09-06 19:02:01 (GMT)
commit222e09a3e097782846784345e96f6e8487181efb (patch)
tree46cb6e7941068ca59a716e5797c79fe55e5f3284 /generic
parent96d74721a272f029a56beaef2408d26c3ec8e38e (diff)
downloadtk-222e09a3e097782846784345e96f6e8487181efb.zip
tk-222e09a3e097782846784345e96f6e8487181efb.tar.gz
tk-222e09a3e097782846784345e96f6e8487181efb.tar.bz2
* generic/tkMessage.c (MessageWidgetObjCmd): initialized result to
avoid pedantic warning.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkMessage.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkMessage.c b/generic/tkMessage.c
index 69233b2..e42b581 100644
--- a/generic/tkMessage.c
+++ b/generic/tkMessage.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: tkMessage.c,v 1.7 2000/08/10 00:21:07 ericm Exp $
+ * RCS: @(#) $Id: tkMessage.c,v 1.8 2000/09/06 19:02:01 hobbs Exp $
*/
#include "tkPort.h"
@@ -328,7 +328,8 @@ MessageWidgetObjCmd(clientData, interp, objc, objv)
register Message *msgPtr = (Message *) clientData;
static char *optionStrings[] = { "cget", "configure", (char *) NULL };
enum options { MESSAGE_CGET, MESSAGE_CONFIGURE };
- int index, result;
+ int index;
+ int result = TCL_OK;
Tcl_Obj *objPtr;
if (objc < 2) {