diff options
Diffstat (limited to 'usr.bin/rev/rev.c')
-rw-r--r-- | usr.bin/rev/rev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/rev/rev.c b/usr.bin/rev/rev.c index 87c8587..67080fb 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); |