diff options
author | Bert <ber.t@gmx.com> | 2011-02-15 15:30:37 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-02-15 15:30:37 +0100 |
commit | e8ed491ba9f2fe6df8f071e7c59e0174bb307a1b (patch) | |
tree | e9f9bece1767f44df2bb83e756b45839f50230e4 /main.c | |
parent | cfed65d36fbacf6bec47869c86ea94f1cc49bcb5 (diff) |
Fixed empty lines in readline()
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -91,7 +91,7 @@ int main(int argc, char **argv) { if (options->from_stdin) { while ((filename = readline(stdin))) { - if (!check_append(filename)) + if (!*filename || !check_append(filename)) free((void*) filename); } } else { |