about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--arr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arr.c b/arr.c
index 1a52845..552cbf4 100644
--- a/arr.c
+++ b/arr.c
@@ -261,7 +261,7 @@ usage:
 	char **arglist = argv + optind;  // starts counting at 1
 
 	// default to stdin when no file arguments are given
-	if (argnum == 0)
+	if (argnum <= 1)
 		stdins++;
 
 	FILE **files = calloc(argnum+stdins, sizeof (FILE *));