[evolution] Always initialized all structure members



commit 0c790b10190c2cff5fdb7cc1b25dc2a41dedd707
Author: Milan Crha <mcrha redhat com>
Date:   Thu May 19 08:53:04 2011 +0200

    Always initialized all structure members

 mail/mail-folder-cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c
index 5ee3bc5..8885ce4 100644
--- a/mail/mail-folder-cache.c
+++ b/mail/mail-folder-cache.c
@@ -1134,7 +1134,7 @@ mail_folder_cache_note_store (MailFolderCache *self,
 		hook = TRUE;
 	}
 
-	ud = g_malloc (sizeof (*ud));
+	ud = g_malloc0 (sizeof (*ud));
 	ud->done = done;
 	ud->data = data;
 	ud->cache = self;



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