mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Small bug fix.
This commit is contained in:
@@ -117,11 +117,11 @@ namespace bx
|
||||
const char* arg = findOption(_short, _long, 1);
|
||||
if (NULL != arg)
|
||||
{
|
||||
if ('0' == *arg || stricmp(arg, "false") )
|
||||
if ('0' == *arg || (0 == stricmp(arg, "false") ) )
|
||||
{
|
||||
_value = false;
|
||||
}
|
||||
else if ('0' != *arg || stricmp(arg, "true") )
|
||||
else if ('0' != *arg || (0 == stricmp(arg, "true") ) )
|
||||
{
|
||||
_value = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user