util: Recognize FALSE and F in debug_get_bool_option

Concidering that we actually print FALSE when displaying the
option we should also accept that value.
This commit is contained in:
Jakob Bornecrantz 2010-05-06 15:42:18 +01:00
parent 7ed2f953c0
commit f587615e13

View file

@ -123,8 +123,12 @@ debug_get_bool_option(const char *name, boolean dfault)
result = FALSE;
else if(!util_strcmp(str, "f"))
result = FALSE;
else if(!util_strcmp(str, "F"))
result = FALSE;
else if(!util_strcmp(str, "false"))
result = FALSE;
else if(!util_strcmp(str, "FALSE"))
result = FALSE;
else
result = TRUE;