svn commit: r349101 - head/usr.bin/vtfontcvt
Ed Maste
emaste at FreeBSD.org
Sun Jun 16 10:43:19 UTC 2019
Author: emaste
Date: Sun Jun 16 10:43:18 2019
New Revision: 349101
URL: https://svnweb.freebsd.org/changeset/base/349101
Log:
vtfontcvt: initialize bbwbytes to avoid GCC 4.2.1 uninitialized warning
PR: 205707
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 09:17:26 2019 (r349100)
+++ head/usr.bin/vtfontcvt/vtfontcvt.c Sun Jun 16 10:43:18 2019 (r349101)
@@ -367,6 +367,7 @@ parse_bdf(FILE *fp, unsigned int map_idx)
dwidth = bbw = bbh = 0;
rewind(fp);
linenum = 0;
+ bbwbytes = 0; /* GCC 4.2.1 "may be used uninitialized" workaround. */
bytes = xmalloc(wbytes * height);
bytes_r = xmalloc(wbytes * height);
line = xmalloc(wbytes * 2);
More information about the svn-src-all
mailing list