From 97d3812b2649a91a64905147530b47dadc8f556e Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 2 Jan 2010 21:37:29 +0100 Subject: thumbnails: Don't use memset to initialize GValue. --- thumbnails.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/thumbnails.c b/thumbnails.c index 83e6ec4..003120e 100644 --- a/thumbnails.c +++ b/thumbnails.c @@ -1,5 +1,4 @@ #include -#include #include #include @@ -126,7 +125,7 @@ gpointer add_thumbs_thread(gpointer data) { GtkListStore *liststore; GtkTreeIter iter; int n; - GValue value; + GValue value = {0}; GdkPixbuf *pb = NULL; const gchar *filepath; @@ -138,8 +137,6 @@ gpointer add_thumbs_thread(gpointer data) { n = gtk_tree_model_iter_n_children(GTK_TREE_MODEL(liststore), NULL); - memset(&value, 0, sizeof(GValue)); - for(int i = 0; i < n; i++) { gtk_tree_model_get_value(GTK_TREE_MODEL(liststore), &iter, 1, &value); filepath = g_value_get_string(&value); -- cgit v1.2.3