changeset 32831:acc4bb6f55e3

Simplify array initialization.
author ib
date Thu, 17 Feb 2011 10:02:25 +0000
parents 5cec4caabf42
children d3c28b47ffcd
files gui/skin/font.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/font.c	Wed Feb 16 18:43:48 2011 +0000
+++ b/gui/skin/font.c	Thu Feb 17 10:02:25 2011 +0000
@@ -151,7 +151,7 @@
 // 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'};
  int i, c = -1;
 
  if ( **str & 0x80 )