summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2013-07-01 19:40:12 +0100
committerDiogo Sousa <diogogsousa@gmail.com>2013-07-02 01:54:11 +0100
commit4886cc8258783047ab035ea35ec5b08997948567 (patch)
tree683bd6b11d4fb156bb2cbe84cccacf0b5415346f /src
parent73c9321361b38e75d442780280175d5298893c8f (diff)
Don't use G_VALUE_INIT since it was introduced in glib 2.30, and our minimum
requirement is glib 2.28. This was giving a compilation error in FreeBSD 9.1,
since it uses glib 2.28.
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/banlist.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/fe-gtk/banlist.c b/src/fe-gtk/banlist.c
index 897e61d6..d80d9333 100644
--- a/src/fe-gtk/banlist.c
+++ b/src/fe-gtk/banlist.c
@@ -323,10 +323,14 @@ banlist_copyentry (GtkWidget *menuitem, GtkTreeView *view)
 	GtkTreeModel *model;
 	GtkTreeSelection *sel;
 	GtkTreeIter iter;
-	GValue mask = G_VALUE_INIT;
-	GValue from = G_VALUE_INIT;
-	GValue date = G_VALUE_INIT;
+	GValue mask;
+	GValue from;
+	GValue date;
 	char *str;
+
+	memset (&mask, 0, sizeof (mask));
+	memset (&from, 0, sizeof (from));
+	memset (&date, 0, sizeof (date));
 	
 	/* get selection (which should have been set on click)
 	 * and temporarily switch to single mode to get selected iter */