aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;