mirror of
https://github.com/jarun/nnn.git
synced 2025-04-15 09:56:32 +00:00
Fix check for binary value
This commit is contained in:
parent
7467d9f0ed
commit
6186e8b458
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue