aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--noice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/noice.c b/noice.c
index 9955a8d..63c7b6b 100644
--- a/noice.c
+++ b/noice.c
@@ -344,7 +344,7 @@ readln(void)
noecho();
curs_set(FALSE);
timeout(1000);
- return strlen(ln) ? strdup(ln) : NULL;
+ return ln[0] ? strdup(ln) : NULL;
}
/*