Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jun 2011 15:48:44 +0000 (UTC)
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222568 - head/usr.sbin/kbdmap
Message-ID:  <201106011548.p51FmibR076290@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106011548.p51FmibR076290>