mirror of
https://github.com/mpv-player/mpv
synced 2025-03-24 04:08:19 +00:00
Use memset to initialize huge arrays.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30588 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
687744dfed
commit
51cc80d2dd
@ -846,8 +846,9 @@ static font_desc_t* init_font_desc(void)
|
||||
/* setup sane defaults */
|
||||
desc->freetype = 1;
|
||||
|
||||
for(i = 0; i < 65536; i++)
|
||||
desc->start[i] = desc->width[i] = desc->font[i] = -1;
|
||||
memset(desc->start, 0xff, sizeof(desc->start));
|
||||
memset(desc->width, 0xff, sizeof(desc->width));
|
||||
memset(desc->font, 0xff, sizeof(desc->font));
|
||||
|
||||
return desc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user