[MPlayer-cvslog] r30588 - trunk/libvo/font_load_ft.c

reimar subversion at mplayerhq.hu
Sun Feb 14 19:38:02 CET 2010


Author: reimar
Date: Sun Feb 14 19:38:02 2010
New Revision: 30588

Log:
Use memset to initialize huge arrays.

Modified:
   trunk/libvo/font_load_ft.c

Modified: trunk/libvo/font_load_ft.c
==============================================================================
--- trunk/libvo/font_load_ft.c	Sun Feb 14 19:32:31 2010	(r30587)
+++ trunk/libvo/font_load_ft.c	Sun Feb 14 19:38:02 2010	(r30588)
@@ -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;
 }


More information about the MPlayer-cvslog mailing list