# HG changeset patch # User Mark Doliner # Date 1246212421 0 # Node ID 0442722d5924dca8118b10353431c80e2befed0d # Parent 283dea451801991f2c2a661feaf8477dbaaceb36 Fix a compile warning gtkblist-theme.c: In function ¡Æcopy_font_and_color¡Ç: gtkblist-theme.c:130: warning: ISO C90 forbids mixed declarations and code diff -r 283dea451801 -r 0442722d5924 pidgin/gtkblist-theme.c --- a/pidgin/gtkblist-theme.c Sun Jun 28 09:46:14 2009 +0000 +++ b/pidgin/gtkblist-theme.c Sun Jun 28 18:07:01 2009 +0000 @@ -124,10 +124,12 @@ static PidginThemeFont * copy_font_and_color(const PidginThemeFont *pair) { + PidginThemeFont *copy; + if (pair == NULL) return NULL; - PidginThemeFont *copy = g_new0(PidginThemeFont, 1); + copy = g_new0(PidginThemeFont, 1); copy->font = g_strdup(pair->font); strncpy(copy->color, pair->color, sizeof(copy->color) - 1); if (pair->gdkcolor)