Mercurial > pidgin.yaz
changeset 27288:0442722d5924
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
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 28 Jun 2009 18:07:01 +0000 |
parents | 283dea451801 |
children | 1c1af7e226e5 |
files | pidgin/gtkblist-theme.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)