# HG changeset patch # User ib # Date 1297955197 0 # Node ID 2af511e2575e854fa6a26cd5831ba56c0eba11b6 # Parent 19cc523b8e15095ca8272f13bd7305bbbeae600b Do proper and portable initialization. diff -r 19cc523b8e15 -r 2af511e2575e gui/skin/font.c --- a/gui/skin/font.c Thu Feb 17 13:35:58 2011 +0000 +++ b/gui/skin/font.c Thu Feb 17 15:06:37 2011 +0000 @@ -27,19 +27,21 @@ #include "../interface.h" #include "libavutil/avstring.h" -bmpFont * Fonts[MAX_FONTS] = {NULL}; +bmpFont * Fonts[MAX_FONTS] = {0}; int fntAddNewFont( char * name ) { int id, i; + bmpFont init = {0}; for( id=0;idname,name,MAX_FONT_NAME ); for ( i=0;iFnt[i].x=Fonts[id]->Fnt[i].y=Fonts[id]->Fnt[i].sx=Fonts[id]->Fnt[i].sy=-1;