Skip to content

Commit

Permalink
vtfontcvt: initialize bbwbytes to avoid GCC 4.2.1 uninitialized warning
Browse files Browse the repository at this point in the history
PR:		205707
MFC with:	349100
Event:		Berlin Devsummit 2019
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
emaste committed Jun 16, 2019
1 parent 34ce42f commit b0bec5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions usr.bin/vtfontcvt/vtfontcvt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b0bec5b

Please sign in to comment.