aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-04-25 19:02:55 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-04-25 19:02:55 +0530
commit6186e8b458b489651809b679fcb8d757c8f3aa30 (patch)
treeecebecb3301975e48088092011773bb4d2a42b78
parent7467d9f0ed74ef65ad3c567b55ef2bb6f7a670da (diff)
downloadnnn-6186e8b458b489651809b679fcb8d757c8f3aa30.tar.gz
Fix check for binary value
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index eb361a1..5fb992e 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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;