aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/main.c b/main.c
index e8f087c1..e2f70d77 100644
--- a/main.c
+++ b/main.c
@@ -1202,12 +1202,11 @@ is_off_limits_var(const char *var)
const struct varinit *vp;
for (vp = varinit; vp->name != NULL; vp++) {
- if ( (vp->flags & NOT_OFF_LIMITS) != 0
- && strcmp(vp->name, var) == 0)
- return false;
+ if (strcmp(vp->name, var) == 0)
+ return !(vp->flags & NOT_OFF_LIMITS);
}
- return true;
+ return false;
}
/* get_spec_varname --- return the name of a special variable