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:
parent
3bd2e9a54e
commit
ff31ddeb11
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user