aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-05-19 17:55:03 +0200
committerDuncaen <mail@duncano.de>2017-05-19 17:55:03 +0200
commit58aae731d28c42a41282780c728e74e31be56260 (patch)
tree57f91d7387af879002b09036d3cf0be42b17d10d
parent7f46b539fefd9fe591f281fcdebd60e7fd82b774 (diff)
downloadlobase-58aae731d28c42a41282780c728e74e31be56260.tar.gz
usr.bin/vis: update to OPENBSD_6_1
-rw-r--r--usr.bin/vis/vis.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/vis/vis.c b/usr.bin/vis/vis.c
index cf5cd84..38aa9d7 100644
--- a/usr.bin/vis/vis.c
+++ b/usr.bin/vis/vis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vis.c,v 1.19 2015/10/09 01:37:09 deraadt Exp $ */
+/* $OpenBSD: vis.c,v 1.20 2016/08/31 09:45:00 jsg Exp $ */
/* $NetBSD: vis.c,v 1.4 1994/12/20 16:13:03 jtc Exp $ */
/*-
@@ -111,9 +111,10 @@ main(int argc, char *argv[])
if (*argv)
while (*argv) {
- if ((fp=fopen(*argv, "r")) != NULL)
+ if ((fp=fopen(*argv, "r")) != NULL) {
process(fp);
- else
+ fclose(fp);
+ } else
warn("%s", *argv);
argv++;
}