[MPlayer-cvslog] r32918 - trunk/gui/skin/font.c
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Thu Feb 17 17:59:14 CET 2011
On 17 Feb 2011, at 11:02, ib <subversion at mplayerhq.hu> wrote:
> Author: ib
> Date: Thu Feb 17 11:02:25 2011
> New Revision: 32918
>
> Log:
> Simplify array initialization.
>
> Modified:
> trunk/gui/skin/font.c
>
> Modified: trunk/gui/skin/font.c
> ==============================================================================
> --- trunk/gui/skin/font.c Wed Feb 16 19:43:48 2011 (r32917)
> +++ trunk/gui/skin/font.c Thu Feb 17 11:02:25 2011 (r32918)
> @@ -151,7 +151,7 @@ int fntFindID( char * name )
> // then move pointer to next/previous character
> int fntGetCharIndex( int id, unsigned char **str, gboolean utf8, int direction )
> {
> - unsigned char *p, uchar[4] = { 0, 0, 0, 0 };
> + unsigned char *p, uchar[4] = {'\0'};
Also note that almost all code in MPlayer just uses 0, not '\0'.
This applies doubly since
1) this is an unsigned char, which means we actually do use it as a number, not characters
2) we use almost everywhere UTF-8, which means 1) basically applies always.
More information about the MPlayer-cvslog
mailing list