aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lam/lam.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/lam/lam.c')
-rw-r--r--usr.bin/lam/lam.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c
index 2194ae7ab596..c1221ca92d0e 100644
--- a/usr.bin/lam/lam.c
+++ b/usr.bin/lam/lam.c
@@ -213,11 +213,8 @@ gatherline(struct openfile *ip)
*p = '\0';
if (c == EOF) {
ip->eof = 1;
- if (ferror(ip->fp)) {
+ if (ferror(ip->fp))
err(EX_IOERR, NULL);
- }
- if (ip->fp == stdin)
- fclose(stdin);
morefiles--;
return (pad(ip));
}