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:
reimar 2010-02-14 18:38:02 +00:00
parent 687744dfed
commit 51cc80d2dd
1 changed files with 3 additions and 2 deletions

View File

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