[rt31459d] fix first if test in setoption

(cherry picked from commit abda73147d)
This commit is contained in:
Evan Hunt 2017-09-12 23:51:51 -07:00
parent dcbe6a66d7
commit 06b082c230

View file

@ -642,7 +642,7 @@ setoption(char *opt) {
#define CHECKOPT(A, N) \
((l >= N) && (l < sizeof(A)) && (strncasecmp(opt, A, l) == 0))
if (CHECKOPT("all", 3) == 0) {
if (CHECKOPT("all", 3)) {
show_settings(ISC_TRUE, ISC_FALSE);
} else if (strncasecmp(opt, "class=", 6) == 0) {
if (testclass(&opt[6]))