diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-14 18:38:02 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-14 18:38:02 +0000 |
commit | 51cc80d2dd160a075b49e61b8056c1dde5e7f55f (patch) | |
tree | 25486bd9db0bfaeace3240cdfa661adfff99d725 | |
parent | 687744dfedd8c32db48ec24c1edc72d620b4580a (diff) | |
download | mpv-51cc80d2dd160a075b49e61b8056c1dde5e7f55f.tar.bz2 mpv-51cc80d2dd160a075b49e61b8056c1dde5e7f55f.tar.xz |
Use memset to initialize huge arrays.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30588 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/font_load_ft.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libvo/font_load_ft.c b/libvo/font_load_ft.c index 886a7d6945..d47033e11b 100644 --- a/libvo/font_load_ft.c +++ b/libvo/font_load_ft.c @@ -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; } |