summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/uniq/uniq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/uniq/uniq.c b/usr.bin/uniq/uniq.c
index 18ac1ae..02c1273 100644
--- a/usr.bin/uniq/uniq.c
+++ b/usr.bin/uniq/uniq.c
@@ -142,7 +142,7 @@ main (int argc, char *argv[])
err(1, "malloc");
if (getline(prevline, MAXLINELEN, ifp) == NULL) {
- if (ferror(ifp) || 1)
+ if (ferror(ifp))
err(1, "%s", ifn);
exit(0);
}
OpenPOWER on IntegriCloud