[evolution] Using of uninitialized memory in em-folder-tree-model.c:store_info_free



commit 6e1e36c0474312058a1479d2f570428c2dc0e806
Author: Milan Crha <mcrha redhat com>
Date:   Tue Aug 16 07:39:06 2011 +0200

    Using of uninitialized memory in em-folder-tree-model.c:store_info_free

 mail/em-folder-tree-model.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index 05113d0..f9ed371 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -1043,7 +1043,7 @@ em_folder_tree_model_add_store (EMFolderTreeModel *model,
 	path = gtk_tree_model_get_path (GTK_TREE_MODEL (model), &iter);
 	reference = gtk_tree_row_reference_new (GTK_TREE_MODEL (model), path);
 
-	si = g_new (EMFolderTreeModelStoreInfo, 1);
+	si = g_new0 (EMFolderTreeModelStoreInfo, 1);
 	si->store = g_object_ref (store);
 	si->row = gtk_tree_row_reference_copy (reference);
 	si->full_hash = g_hash_table_new_full (



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]