From 6186e8b458b489651809b679fcb8d757c8f3aa30 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 25 Apr 2019 19:02:55 +0530 Subject: Fix check for binary value --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2