[seahorse] Fix uninitialized memory usage



commit 45a3a5546b17093164b7fbb128228d0e06294fc3
Author: Stef Walter <stefw gnome org>
Date:   Fri Jan 27 14:16:52 2012 +0100

    Fix uninitialized memory usage

 libseahorse/seahorse-exportable.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libseahorse/seahorse-exportable.c b/libseahorse/seahorse-exportable.c
index b41c4fd..26de2fb 100644
--- a/libseahorse/seahorse-exportable.c
+++ b/libseahorse/seahorse-exportable.c
@@ -183,6 +183,9 @@ seahorse_exportable_export_to_text_wait (GList *objects,
 	g_return_val_if_fail (data != NULL, 0);
 	g_return_val_if_fail (size != NULL, 0);
 
+	*data = NULL;
+	*size = 0;
+
 	for (l = objects; l != NULL; l = g_list_next (l)) {
 		if (!seahorse_exportable_can_export (l->data))
 			continue;



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