From 4886cc8258783047ab035ea35ec5b08997948567 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Mon, 1 Jul 2013 19:40:12 +0100 Subject: 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. --- src/fe-gtk/banlist.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/fe-gtk') 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 */ -- cgit 1.4.1