diff options
author | jh <jh@FreeBSD.org> | 2011-06-01 15:48:43 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2011-06-01 15:48:43 +0000 |
commit | fcc5bce7bd855a3af06b002b7b5eccc704214de2 (patch) | |
tree | 8fe537a29b96f9c61bce4eec44d156197e9e83a3 | |
parent | 2bafae5d4096787e1f29903b02b40c3f7eef48b3 (diff) | |
download | FreeBSD-src-fcc5bce7bd855a3af06b002b7b5eccc704214de2.zip FreeBSD-src-fcc5bce7bd855a3af06b002b7b5eccc704214de2.tar.gz |
Don't try to close the stream if fopen(3) fails.
PR: bin/155349
Submitted by: Urankar Mikael
-rw-r--r-- | usr.sbin/kbdmap/kbdmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/kbdmap/kbdmap.c b/usr.sbin/kbdmap/kbdmap.c index 93c5a08..c993389 100644 --- a/usr.sbin/kbdmap/kbdmap.c +++ b/usr.sbin/kbdmap/kbdmap.c @@ -226,10 +226,10 @@ get_font(void) } } } + fclose(fp); } else fprintf(stderr, "Could not open %s for reading\n", sysconfig); - fclose(fp); return fnt; } |