diff options
author | TingPing <tngpng@gmail.com> | 2013-07-01 18:51:51 -0700 |
---|---|---|
committer | TingPing <tngpng@gmail.com> | 2013-07-01 18:51:51 -0700 |
commit | 340811da6ed28f6ea0e30f27ce041cfc0a263bef (patch) | |
tree | 1f4128ea7ef6260de4232648a7b8d965a3883ced /src/fe-gtk | |
parent | 82277a80eae4e300935a6e90f053a5b22fac5850 (diff) | |
parent | 4b40597c76063e0d97c6e0b6295c72caf3dc2d07 (diff) |
Merge pull request #665 from orium/freebsd-fixes
Freebsd fixes
Diffstat (limited to 'src/fe-gtk')
-rw-r--r-- | src/fe-gtk/banlist.c | 10 |
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 */ |