Commit dce60449 authored by Dimitris Panokostas's avatar Dimitris Panokostas Committed by GitHub

Update cfgfile.cpp

Handle a value of "1" as TRUE in a boolean configuration option
parent 74c33b5f
......@@ -984,7 +984,8 @@ int cfgfile_yesno(const TCHAR *option, const TCHAR *value, const TCHAR *name, in
return 0;
if (strcasecmp(value, _T("yes")) == 0 || strcasecmp(value, _T("y")) == 0
|| strcasecmp(value, _T("true")) == 0 || strcasecmp(value, _T("t")) == 0)
|| strcasecmp(value, _T("true")) == 0 || strcasecmp(value, _T("t")) == 0
|| (numbercheck && strcasecmp(value, _T("1")) == 0))
*location = 1;
else if (strcasecmp(value, _T("no")) == 0 || strcasecmp(value, _T("n")) == 0
|| strcasecmp(value, _T("false")) == 0 || strcasecmp(value, _T("f")) == 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment