summaryrefslogtreecommitdiff
path: root/usr.bin/sort
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-04-02 12:19:52 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-04-02 12:19:52 +0000
commit9b2d5eccb836a137b78e75008d37b58c68d52264 (patch)
tree35b4ec6455d7ef4f7732b77eb471829992f66218 /usr.bin/sort
parent3f01c95a90402d7a4f1335c738a1a41bbfdd6400 (diff)
closefile() already checks for stdin so no need to check in the caller.
Diffstat (limited to 'usr.bin/sort')
-rw-r--r--usr.bin/sort/file.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/sort/file.c b/usr.bin/sort/file.c
index ee3fc3c87c7..9d62c39480f 100644
--- a/usr.bin/sort/file.c
+++ b/usr.bin/sort/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.14 2015/04/01 22:43:16 deraadt Exp $ */
+/* $OpenBSD: file.c,v 1.15 2015/04/02 12:19:51 millert Exp $ */
/*-
* Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
@@ -731,8 +731,7 @@ file_reader_clean(struct file_reader *fr)
sort_free(fr->buffer);
if (fr->file)
- if (fr->file != stdin)
- closefile(fr->file, fr->fname);
+ closefile(fr->file, fr->fname);
sort_free(fr->fname);