No need for strlen()

Thanks Hiltjo!
This commit is contained in:
sin 2015-11-20 17:41:11 +00:00
parent 252e8561ef
commit d1d086d91e

View file

@ -344,7 +344,7 @@ readln(void)
noecho();
curs_set(FALSE);
timeout(1000);
return strlen(ln) ? strdup(ln) : NULL;
return ln[0] ? strdup(ln) : NULL;
}
/*