Mercurial > mplayer.hg
changeset 30546:25326e90db0a
Use memset to initialize huge arrays.
author | reimar |
---|---|
date | Sun, 14 Feb 2010 18:38:02 +0000 |
parents | 25b073b2cd65 |
children | 23dc17cd98db |
files | libvo/font_load_ft.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/font_load_ft.c Sun Feb 14 18:32:31 2010 +0000 +++ b/libvo/font_load_ft.c Sun Feb 14 18:38:02 2010 +0000 @@ -846,8 +846,9 @@ /* 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; }