summaryrefslogtreecommitdiffstats
path: root/text-utils/rev.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-utils/rev.c')
-rw-r--r--text-utils/rev.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/text-utils/rev.c b/text-utils/rev.c
index 1665772b2..1c440366c 100644
--- a/text-utils/rev.c
+++ b/text-utils/rev.c
@@ -161,14 +161,11 @@ int main(int argc, char *argv[])
if (!feof(fp))
putwchar('\n');
}
-
- fflush(fp);
if (ferror(fp)) {
warn("%s", filename);
rval = EXIT_FAILURE;
}
- if (fclose(fp))
- rval = EXIT_FAILURE;
+ fclose(fp);
} while(*argv);
free(buf);