summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-02-05 10:03:23 (GMT)
committernijtmans <nijtmans>2010-02-05 10:03:23 (GMT)
commit3e2c1215a7115e506d67819f0831da51f8aa201a (patch)
tree91a0d32c754b6aff65afda82a01486cdc41c00d3 /generic/tclVar.c
parent280e93549c0502a223353a6814bb3548fcd9a71b (diff)
downloadtcl-3e2c1215a7115e506d67819f0831da51f8aa201a.zip
tcl-3e2c1215a7115e506d67819f0831da51f8aa201a.tar.gz
tcl-3e2c1215a7115e506d67819f0831da51f8aa201a.tar.bz2
Follow-up to [2010-01-29] commit:
prevent space within stub table function parameters if the parameter type is a pointer. Minor formatting, and VOID -> void. Change signature of TclNRInterpProcCore, and TclOONewProc(Instance|)MethodEx, indicating that errorProc is a function pointer tclVar.c: fixed two gcc warnings
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r--generic/tclVar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index 06a2c9c..1848fff 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -16,7 +16,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclVar.c,v 1.193 2010/02/04 14:56:50 dkf Exp $
+ * RCS: @(#) $Id: tclVar.c,v 1.194 2010/02/05 10:03:23 nijtmans Exp $
*/
#include "tclInt.h"
@@ -3700,7 +3700,7 @@ ArrayNamesCmd(
Var *varPtr, *arrayPtr, *varPtr2;
Tcl_Obj *varNameObj, *nameObj, *resultObj, *patternObj;
Tcl_HashSearch search;
- const char *pattern;
+ const char *pattern = NULL;
int mode = OPT_GLOB;
if ((objc < 2) || (objc > 4)) {
@@ -3785,7 +3785,7 @@ ArrayNamesCmd(
nameObj = VarHashGetKey(varPtr2);
if (patternObj) {
const char *name = TclGetString(nameObj);
- int matched;
+ int matched = 0;
switch ((enum options) mode) {
case OPT_EXACT: