svn commit: r222568 - head/usr.sbin/kbdmap
Jaakko Heinonen
jh at FreeBSD.org
Wed Jun 1 15:48:44 UTC 2011
Author: jh
Date: Wed Jun 1 15:48:43 2011
New Revision: 222568
URL: http://svn.freebsd.org/changeset/base/222568
Log:
Don't try to close the stream if fopen(3) fails.
PR: bin/155349
Submitted by: Urankar Mikael
Modified:
head/usr.sbin/kbdmap/kbdmap.c
Modified: head/usr.sbin/kbdmap/kbdmap.c
==============================================================================
--- head/usr.sbin/kbdmap/kbdmap.c Wed Jun 1 15:46:26 2011 (r222567)
+++ head/usr.sbin/kbdmap/kbdmap.c Wed Jun 1 15:48:43 2011 (r222568)
@@ -226,10 +226,10 @@ get_font(void)
}
}
}
+ fclose(fp);
} else
fprintf(stderr, "Could not open %s for reading\n", sysconfig);
- fclose(fp);
return fnt;
}
More information about the svn-src-head
mailing list