[libgdata/libgdata-0-6] contacts: Fix use of uninitialised memory



commit 4620de28a1416b7c728f20cd71c78882d072cf41
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue May 4 00:09:56 2010 +0100

    contacts: Fix use of uninitialised memory

 gdata/services/contacts/gdata-contacts-contact.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/services/contacts/gdata-contacts-contact.c b/gdata/services/contacts/gdata-contacts-contact.c
index 4feb67f..4467c01 100644
--- a/gdata/services/contacts/gdata-contacts-contact.c
+++ b/gdata/services/contacts/gdata-contacts-contact.c
@@ -1153,7 +1153,7 @@ get_groups_cb (const gchar *href, gpointer deleted, GList **groups)
 GList *
 gdata_contacts_contact_get_groups (GDataContactsContact *self)
 {
-	GList *groups;
+	GList *groups = NULL;
 
 	g_return_val_if_fail (GDATA_IS_CONTACTS_CONTACT (self), NULL);
 



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