summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r--generic/tclObj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c
index 8d3ddd5..6dcd733 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -2154,7 +2154,7 @@ ParseBoolean(
Tcl_Size i, length;
const char *str = Tcl_GetStringFromObj(objPtr, &length);
- if ((length == 0) || (length > 5)) {
+ if ((length <= 0) || (length > 5)) {
/*
* Longest valid boolean string rep. is "false".
*/