diff options
| -rw-r--r-- | noice.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -344,7 +344,7 @@ readln(void) noecho(); curs_set(FALSE); timeout(1000); - return strlen(ln) ? strdup(ln) : NULL; + return ln[0] ? strdup(ln) : NULL; } /* |
| index : nnn.git | ||
| forked from https://github.com/jarun/nnn | Tim Segers |
| aboutsummaryrefslogtreecommitdiffstats |
| -rw-r--r-- | noice.c | 2 |
@@ -344,7 +344,7 @@ readln(void) noecho(); curs_set(FALSE); timeout(1000); - return strlen(ln) ? strdup(ln) : NULL; + return ln[0] ? strdup(ln) : NULL; } /* |