aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/rev
diff options
context:
space:
mode:
authorSuleiman Souhlal <ssouhlal@FreeBSD.org>2004-12-15 06:24:57 +0000
committerSuleiman Souhlal <ssouhlal@FreeBSD.org>2004-12-15 06:24:57 +0000
commitf6bbd7a8e918ea0f48c1aaf0aecab9051804d4a5 (patch)
treeeed7f2ca09418f1c98e6c817ca54b962cb3f624a /usr.bin/rev
parent4011d8a8c93cb2a4337796765bd5f5f7929b4215 (diff)
Notes
Diffstat (limited to 'usr.bin/rev')
-rw-r--r--usr.bin/rev/rev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/rev/rev.c b/usr.bin/rev/rev.c
index 87c858712ff86..67080fbb0845e 100644
--- a/usr.bin/rev/rev.c
+++ b/usr.bin/rev/rev.c
@@ -103,6 +103,7 @@ main(int argc, char *argv[])
}
if (ferror(fp)) {
warn("%s", filename);
+ clearerr(fp);
rval = 1;
}
(void)fclose(fp);