summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/lam/lam.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c
index 8a65a8d..e01fc9d 100644
--- a/usr.bin/lam/lam.c
+++ b/usr.bin/lam/lam.c
@@ -114,9 +114,10 @@ getargs(char *av[])
P = S = F = T = 0; /* capitalized options */
while ((p = *++av) != NULL) {
if (*p != '-' || !p[1]) {
- if (*p == '-')
+ morefiles++;
+ if (*p == '-') {
ip->fp = stdin;
- else if ((ip->fp = fopen(p, "r")) == NULL) {
+ } else if ((ip->fp = fopen(p, "r")) == NULL) {
err(1, "%s", p);
}
ip->pad = P;
OpenPOWER on IntegriCloud