[libgdata] core: Fix uninitialised memory in GDataService query data structure



commit 1e2b9a2805c40abc40ede2aed44c2fdcd38a7d9a
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Jul 9 13:05:43 2011 +0100

    core: Fix uninitialised memory in GDataService query data structure
    
    This can cause problems when cancelling queries, sometimes.

 gdata/gdata-service.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index 74c0e21..0a9c47f 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -802,6 +802,7 @@ gdata_service_query_async (GDataService *self, GDataAuthorizationDomain *domain,
 	data->feed_uri = g_strdup (feed_uri);
 	data->query = (query != NULL) ? g_object_ref (query) : NULL;
 	data->entry_type = entry_type;
+	data->feed = NULL;
 	data->progress_callback = progress_callback;
 	data->progress_user_data = progress_user_data;
 	data->destroy_progress_user_data = destroy_progress_user_data;



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