diff options
Diffstat (limited to 'src/usr.bin/vis/vis.c')
-rw-r--r-- | src/usr.bin/vis/vis.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/usr.bin/vis/vis.c b/src/usr.bin/vis/vis.c index cf5cd84..38aa9d7 100644 --- a/src/usr.bin/vis/vis.c +++ b/src/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++; } |