[MPlayer-cvslog] r32923 - trunk/gui/skin/font.c

Clément Bœsch ubitux at gmail.com
Thu Feb 17 17:18:56 CET 2011


On Thu, Feb 17, 2011 at 04:06:38PM +0100, ib wrote:
> [...]
>   int id, i;
> + bmpFont init = {0};
>  
>   for( id=0;id<MAX_FONTS;id++ )
>     if ( !Fonts[id] ) break;
>  
>   if ( id == MAX_FONTS ) return -2;
>  
> - if ( ( Fonts[id]=calloc( 1,sizeof( bmpFont ) ) ) == NULL ) return -1;
> + if ( ( Fonts[id]=malloc( sizeof( bmpFont ) ) ) == NULL ) return -1;
>  
> + *Fonts[id] = init;

Sorry to nag you again but… why do you do that? It is imo much more
confusing.

-- 
Clément B.


More information about the MPlayer-cvslog mailing list