diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-04-25 19:02:55 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-04-25 19:02:55 +0530 |
commit | 6186e8b458b489651809b679fcb8d757c8f3aa30 (patch) | |
tree | ecebecb3301975e48088092011773bb4d2a42b78 | |
parent | 7467d9f0ed74ef65ad3c567b55ef2bb6f7a670da (diff) | |
download | nnn-6186e8b458b489651809b679fcb8d757c8f3aa30.tar.gz |
Fix check for binary value
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 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; |