Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2019 12:26:46 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r349105 - head/usr.bin/vtfontcvt
Message-ID:  <201906161226.x5GCQkAf044083@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Sun Jun 16 12:26:46 2019
New Revision: 349105
URL: https://svnweb.freebsd.org/changeset/base/349105

Log:
  vtfontcvt: initialize another variable to quiet GCC warning
  
  I believe this case could be triggered by a broken .bdf font.
  
  PR:		205707
  Reported by:	ci.freebsd.org
  MFC with:	349100
  Event:		Berlin Devsummit 2019
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/usr.bin/vtfontcvt/vtfontcvt.c

Modified: head/usr.bin/vtfontcvt/vtfontcvt.c
==============================================================================
--- head/usr.bin/vtfontcvt/vtfontcvt.c	Sun Jun 16 11:53:22 2019	(r349104)
+++ head/usr.bin/vtfontcvt/vtfontcvt.c	Sun Jun 16 12:26:46 2019	(r349105)
@@ -313,7 +313,7 @@ parse_bdf(FILE *fp, unsigned int map_idx)
 	int bbw, bbh, bbox, bboy;		/* Glyph bounding box. */
 	int fbbw = 0, fbbh, fbbox, fbboy;	/* Font bounding box. */
 	int dwidth = 0, dwy = 0;
-	int rv;
+	int rv = -1;
 	char spc = '\0';
 
 	/*



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