[packagekit] [PATCH 2/2] trivial: initialize arrays to NULL when replaying cached GetUpdates data

Jonathan Conder j at skurvy.no-ip.org
Thu May 6 04:33:04 PDT 2010


Signed-off-by: Jonathan Conder <j at skurvy.no-ip.org>
---
 src/pk-transaction.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pk-transaction.c b/src/pk-transaction.c
index ddfa21c..a6e5adb 100644
--- a/src/pk-transaction.c
+++ b/src/pk-transaction.c
@@ -3402,8 +3402,8 @@ pk_transaction_try_emit_cache (PkTransaction *transaction)
 {
 	PkResults *results;
 	gboolean ret = FALSE;
-	GPtrArray *package_array;
-	GPtrArray *message_array;
+	GPtrArray *package_array = NULL;
+	GPtrArray *message_array = NULL;
 	PkPackage *package;
 	PkMessage *message;
 	PkExitEnum exit_enum;
-- 
1.7.1





More information about the PackageKit mailing list