Fix check for binary value

This commit is contained in:
Arun Prakash Jana 2019-04-25 19:02:55 +05:30
parent 7467d9f0ed
commit 6186e8b458
1 changed files with 1 additions and 1 deletions

View File

@ -1054,7 +1054,7 @@ static bool xgetenv_set(const char *name)
{
char *value = getenv(name);
if (value && value[0] == 1 && !value[1])
if (value && value[0] == '1' && !value[1])
return TRUE;
return FALSE;