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
This commit is contained in:
Ed Maste 2019-06-16 10:43:18 +00:00
parent 3bd2e9a54e
commit ff31ddeb11

View File

@ -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);