summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inotail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index 3f08360..26092d3 100644
--- a/inotail.c
+++ b/inotail.c
@@ -440,7 +440,7 @@ int main(int argc, char **argv)
} else {
/* It must be stdin then */
static char *dummy_stdin = "-";
- n_files++;
+ n_files = 1;
filenames = &dummy_stdin;
/* POSIX says that -f is ignored if no file operand is