pidgin: f0461fc8: Fix a compiler warning. Sadrul or someon...

rlaager at pidgin.im rlaager at pidgin.im
Tue May 6 22:50:44 EDT 2008


-----------------------------------------------------------------
Revision: f0461fc8d7d1e4d39c2556762728e11aada58ca7
Ancestor: d94973707853b3f6b84dc446eac68f7fd4c9370d
Author: rlaager at pidgin.im
Date: 2008-05-06T05:10:40
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/f0461fc8d7d1e4d39c2556762728e11aada58ca7

Modified files:
        finch/gntrequest.c

ChangeLog: 

Fix a compiler warning. Sadrul or someone should double-check this.

-------------- next part --------------
============================================================
--- finch/gntrequest.c	c710ede1e651c8088bc62d4cdd44f4b8279fda95
+++ finch/gntrequest.c	1284387951c9d16333313ce60bfb91e28cacf5e5
@@ -104,7 +104,8 @@ setup_button_box(GntWidget *win, gpointe
 static GntWidget *
 setup_button_box(GntWidget *win, gpointer userdata, gpointer cb, gpointer data, ...)
 {
-	GntWidget *box, *button;
+	GntWidget *box;
+	GntWidget *button = NULL;
 	va_list list;
 	const char *text;
 	gpointer callback;
@@ -124,7 +125,8 @@ setup_button_box(GntWidget *win, gpointe
 		g_signal_connect(G_OBJECT(button), "activate", G_CALLBACK(cb), data);
 	}
 
-	g_object_set_data(G_OBJECT(button), "cancellation-function", GINT_TO_POINTER(TRUE));
+	if (button)
+		g_object_set_data(G_OBJECT(button), "cancellation-function", GINT_TO_POINTER(TRUE));
 
 	va_end(list);
 	return box;


More information about the Commits mailing list