aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/head.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/head.c b/toys/posix/head.c
index 42f945bf..9312528a 100644
--- a/toys/posix/head.c
+++ b/toys/posix/head.c
@@ -56,6 +56,6 @@ void head_main(void)
if (arg && *arg == '-' && arg[1]) {
TT.lines = atolx(arg+1);
toys.optc--;
- }
+ } else arg = 0;
loopfiles(toys.optargs+!!arg, do_head);
}