From: Jaakko Heinonen Date: Mon, 18 Mar 2002 11:42:52 +0000 (+0000) Subject: fixed boolean values handling X-Git-Tag: upstream/0.6.1~2^2~281 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=264e355b51481b3c64f095453a61161900d2f12a;p=pkg%2Fabook.git fixed boolean values handling --- diff --git a/options.c b/options.c index 82aae49..2f6d0bb 100644 --- a/options.c +++ b/options.c @@ -246,9 +246,9 @@ opt_set_set_option(char *var, char *p, struct option *opt) set_int(opt -> data, safe_atoi(p)); break; case OT_BOOL: - if(!strcasecmp(p, "true") && !strcasecmp(p, "on")) + if(!strcasecmp(p, "true") || !strcasecmp(p, "on")) set_bool(opt -> data, TRUE); - else if(!strcasecmp(p, "false") && + else if(!strcasecmp(p, "false") || !strcasecmp(p, "off")) set_bool(opt -> data, FALSE); else