noice

small file browser
git clone git://git.2f30.org/noice
Log | Files | Refs | README | LICENSE

commit d1d086d91edd89e5a8edcc3349488b3ed89f8c9d
parent 252e8561ef124662be1c98f147e6a4ef345d7f28
Author: sin <sin@2f30.org>
Date:   Fri, 20 Nov 2015 17:41:11 +0000

No need for strlen()

Thanks Hiltjo!

Diffstat:
Mnoice.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; } /*