mirror of https://github.com/mpv-player/mpv
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 */
|
/* setup sane defaults */
|
||||||
desc->freetype = 1;
|
desc->freetype = 1;
|
||||||
|
|
||||||
for(i = 0; i < 65536; i++)
|
memset(desc->start, 0xff, sizeof(desc->start));
|
||||||
desc->start[i] = desc->width[i] = desc->font[i] = -1;
|
memset(desc->width, 0xff, sizeof(desc->width));
|
||||||
|
memset(desc->font, 0xff, sizeof(desc->font));
|
||||||
|
|
||||||
return desc;
|
return desc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue