Date: Sun, 16 Jun 2019 10:43:18 +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: r349101 - head/usr.bin/vtfontcvt Message-ID: <201906161043.x5GAhIOs092236@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906161043.x5GAhIOs092236>