summaryrefslogtreecommitdiffstats
path: root/generic/tclGet.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-31 13:48:51 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-31 13:48:51 (GMT)
commit9ad31cfcf31c75506cd932dfb2d637d4ff299131 (patch)
treefcbb8d9f307cdefac84c5e472f06c087ea3a3971 /generic/tclGet.c
parentd78db33c23ca9fad833989314d1288dafbfd039e (diff)
downloadtcl-9ad31cfcf31c75506cd932dfb2d637d4ff299131.zip
tcl-9ad31cfcf31c75506cd932dfb2d637d4ff299131.tar.gz
tcl-9ad31cfcf31c75506cd932dfb2d637d4ff299131.tar.bz2
Better errpr-handling
Diffstat (limited to 'generic/tclGet.c')
-rw-r--r--generic/tclGet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclGet.c b/generic/tclGet.c
index 1beac24..27f3235 100644
--- a/generic/tclGet.c
+++ b/generic/tclGet.c
@@ -134,8 +134,8 @@ Tcl_GetBool(
Tcl_Obj obj;
int code;
- if (((src == NULL) || (*src == '\0')) && (flags & TCL_NULL_OK)) {
- return (Tcl_GetBoolFromObj)(NULL, NULL, flags, boolPtr);
+ if ((src == NULL) || (*src == '\0')) {
+ return (Tcl_GetBoolFromObj)(interp, NULL, flags, boolPtr);
}
obj.refCount = 1;
obj.bytes = (char *) src;