Fix broken build from commit 47e0437b8b
authorMichael Rasmussen <mir@datanom.net>
Wed, 28 Mar 2018 11:04:48 +0000 (13:04 +0200)
committerMichael Rasmussen <mir@datanom.net>
Wed, 28 Mar 2018 11:04:48 +0000 (13:04 +0200)
Signed-off-by: Michael Rasmussen <mir@datanom.net>
src/addressadd.c

index dda7b7a..4430baf 100644 (file)
@@ -453,11 +453,13 @@ static void addressadd_load_data() {
        GtkTreeIter iter;
        GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(view));
        GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(view));
+       gchar *name;
 
        addressadd_tree_clear();
 
        list = addressbook_dbus_get_books(&error);
        for (; list; list = g_slist_next(list)) {
+               name = (gchar *) list->data;
                fi = addressadd_create_folderinfo(name);
                gtk_tree_store_append(GTK_TREE_STORE(model), &iter, NULL);
                gtk_tree_store_set(GTK_TREE_STORE(model), &iter,