summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-01-02 21:37:29 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-01-02 21:37:29 +0100
commit97d3812b2649a91a64905147530b47dadc8f556e (patch)
tree5eb5c748edfd08e9dca36fd416444f1f8f0e24bf
parent70cd5d5c344e9a0189880b125c744491d2c6bed4 (diff)
thumbnails: Don't use memset to initialize GValue.
-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);