summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2013-01-25 11:48:29 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2013-01-25 11:48:29 (GMT)
commit45088553df755291c5c3a158401a60a254ebd94d (patch)
tree507709c949d3fd2b5d934023e4e39366cae322df /generic/tclVar.c
parent8447eab4af27513757b596b5dcd1f96764523da2 (diff)
downloadtcl-45088553df755291c5c3a158401a60a254ebd94d.zip
tcl-45088553df755291c5c3a158401a60a254ebd94d.tar.gz
tcl-45088553df755291c5c3a158401a60a254ebd94d.tar.bz2
Eliminate some unneeded usages of Tcl_SetResult, Tcl_AddObjErrorInfo
Fix "make test-packages" on cygwin
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r--generic/tclVar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index 9b8527c..2d1479d 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -2036,8 +2036,8 @@ TclIncrObjVar2(
varPtr = TclObjLookupVarEx(interp, part1Ptr, part2Ptr, flags, "read",
1, 1, &arrayPtr);
if (varPtr == NULL) {
- Tcl_AddObjErrorInfo(interp,
- "\n (reading value of variable to increment)", -1);
+ Tcl_AddErrorInfo(interp,
+ "\n (reading value of variable to increment)");
return NULL;
}
return TclPtrIncrObjVar(interp, varPtr, arrayPtr, part1Ptr, part2Ptr,