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

Clément Bœsch ubitux at gmail.com
Wed Feb 16 18:28:40 CET 2011


On Wed, Feb 16, 2011 at 06:19:28PM +0100, ib wrote:
> Author: ib
> Date: Wed Feb 16 18:19:28 2011
> New Revision: 32913
> 
> Log:
> Simplify array initialization.
> 
> Modified:
>    trunk/gui/skin/font.c
> 
> Modified: trunk/gui/skin/font.c
> ==============================================================================
> --- trunk/gui/skin/font.c	Wed Feb 16 17:59:56 2011	(r32912)
> +++ trunk/gui/skin/font.c	Wed Feb 16 18:19:28 2011	(r32913)
> @@ -27,7 +27,7 @@
>  #include "interface.h"
>  #include "libavutil/avstring.h"
>  
> -bmpFont * Fonts[MAX_FONTS] = { NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };
> +bmpFont * Fonts[MAX_FONTS] = {};
>  

You must put a zero in it, or else the behaviour is compiler-specific.

-- 
Clément B.


More information about the MPlayer-cvslog mailing list