Only display return from readline() when there's something to show.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2010-08-07 00:08:31 +02:00 committed by Joachim Nilsson
parent 979f05a5eb
commit ee176c80d7

View File

@ -149,7 +149,8 @@ int main(void)
if (next)
continue;
printf("\t\t\t|%s|\n", line);
if (*line != '\0')
printf("\t\t\t|%s|\n", line);
free(line);
}