summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--thumbnails.c5
1 files changed, 1 insertions, 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 <unistd.h>
-#include <string.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
@@ -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);