pidgin: 08ca75e4: Fix a compile warning
markdoliner at pidgin.im
markdoliner at pidgin.im
Sun Jun 28 14:10:26 EDT 2009
-----------------------------------------------------------------
Revision: 08ca75e416da2e7497adf47e709adc4809eca0da
Ancestor: 0db5728dd6db78a86154abd7e8e7cf32db421f7c
Author: markdoliner at pidgin.im
Date: 2009-06-28T18:07:01
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/08ca75e416da2e7497adf47e709adc4809eca0da
Modified files:
pidgin/gtkblist-theme.c
ChangeLog:
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
-------------- next part --------------
============================================================
--- pidgin/gtkblist-theme.c 95dcccdfffc92cb912fe3973f69ab12b353a03a7
+++ pidgin/gtkblist-theme.c f4b79b0e75aaca83bc30f0fa8dbadb8433d6b5da
@@ -124,10 +124,12 @@ copy_font_and_color(const PidginThemeFon
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)
More information about the Commits
mailing list