aboutsummaryrefslogtreecommitdiffstats
path: root/str_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'str_array.c')
-rw-r--r--str_array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/str_array.c b/str_array.c
index 0b17796c..7ce617ed 100644
--- a/str_array.c
+++ b/str_array.c
@@ -684,9 +684,9 @@ str_option(NODE *opt, NODE *val)
tmp = force_string(opt);
(void) force_number(val);
- if (STREQ(tmp->stptr, "STR_CHAIN_MAX")) {
+ if (strcmp(tmp->stptr, "STR_CHAIN_MAX") == 0) {
newval = (int) val->numbr;
- if (newval > 0)
+ if (newval > 0)
STR_CHAIN_MAX = newval;
} else
ret = NULL;