Fix insertion
authorColin Leroy <colin@colino.net>
Wed, 14 May 2014 08:21:23 +0000 (10:21 +0200)
committerColin Leroy <colin@colino.net>
Wed, 14 May 2014 08:21:23 +0000 (10:21 +0200)
src/common/utils.c

index d228c2f..5dd2f2b 100644 (file)
@@ -2426,7 +2426,7 @@ gint remove_numbered_files_not_in_list(const gchar *dir, GSList *numberlist)
        wanted_files = g_hash_table_new(g_direct_hash, g_direct_equal);
        for (cur = numberlist; cur != NULL; cur = cur->next) {
                /* numberlist->data is expected to be GINT_TO_POINTER */
-               g_hash_table_insert(wanted_files, numberlist->data, GINT_TO_POINTER(1));
+               g_hash_table_insert(wanted_files, cur->data, GINT_TO_POINTER(1));
        }
 
        while ((dir_name = g_dir_read_name(dp)) != NULL) {