diff options
author | Juli Mallett <jmallett@FreeBSD.org> | 2002-06-27 21:11:19 +0000 |
---|---|---|
committer | Juli Mallett <jmallett@FreeBSD.org> | 2002-06-27 21:11:19 +0000 |
commit | 21e21aad32961350db2730edfc4347d42a470f5e (patch) | |
tree | 6f44c62fc57c348415ae6f03c459196704b0bd23 /usr.bin/lam | |
parent | f63eec78e4c6def9db4bfabbca645118cbb147f9 (diff) | |
download | src-21e21aad32961350db2730edfc4347d42a470f5e.tar.gz src-21e21aad32961350db2730edfc4347d42a470f5e.zip |
Notes
Diffstat (limited to 'usr.bin/lam')
-rw-r--r-- | usr.bin/lam/lam.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c index 8a65a8da43b2..e01fc9d0e792 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; |