aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-15 15:30:37 +0100
committerBert <ber.t@gmx.com>2011-02-15 15:30:37 +0100
commite8ed491ba9f2fe6df8f071e7c59e0174bb307a1b (patch)
treee9f9bece1767f44df2bb83e756b45839f50230e4 /main.c
parentcfed65d36fbacf6bec47869c86ea94f1cc49bcb5 (diff)
Fixed empty lines in readline()
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 46f2cf6..9e5965b 100644
--- a/main.c
+++ b/main.c
@@ -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 {