summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2007-11-03 01:47:12 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2007-11-03 01:47:12 (GMT)
commit71b6a5824485a25d8b7be9c26103252cb50ed5f6 (patch)
treee87f0eb9027e31b26dabecc59d6579c5a44d8d8c /generic/tclVar.c
parentc7d4f0143c9004a2ad087ba1faf97eaec526c3e2 (diff)
downloadtcl-71b6a5824485a25d8b7be9c26103252cb50ed5f6.zip
tcl-71b6a5824485a25d8b7be9c26103252cb50ed5f6.tar.gz
tcl-71b6a5824485a25d8b7be9c26103252cb50ed5f6.tar.bz2
* generic/tclTest.c (TestSetCmd2):
* generic/tclVar.c (TclObjLookupVarEx): * tests/set.test (set-5.1): fix error branch when array name looks like array element (code not normally exercised). x
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r--generic/tclVar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index db3d090..56d57c3 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.153 2007/10/27 00:24:17 msofer Exp $
+ * RCS: @(#) $Id: tclVar.c,v 1.154 2007/11/03 01:47:13 msofer Exp $
*/
#include "tclInt.h"
@@ -597,7 +597,7 @@ TclObjLookupVarEx(
if (flags & TCL_LEAVE_ERR_MSG) {
TclObjVarErrMsg(interp, part1Ptr, part2Ptr, msg,
- needArray, -1);
+ noSuchVar, -1);
}
return NULL;
}
@@ -631,6 +631,7 @@ TclObjLookupVarEx(
TclObjVarErrMsg(interp, part1Ptr, part2Ptr, msg,
needArray, -1);
}
+ return NULL;
}
/*