[gnome-packagekit] Fix an update viewer crash if the GetUpdates call produced any messages
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Fix an update viewer crash if the GetUpdates call produced any messages
- Date: Thu, 29 Apr 2010 08:13:59 +0000 (UTC)
commit 936d00bb322bcc3c0aff8196729c47fca7862b7c
Author: Richard Hughes <richard hughsie com>
Date: Thu Apr 29 09:10:52 2010 +0100
Fix an update viewer crash if the GetUpdates call produced any messages
src/gpk-update-viewer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index a073e0f..cc0a30f 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -2598,7 +2598,7 @@ gpk_update_viewer_get_updates_cb (PkClient *client, GAsyncResult *res, GpkUpdate
/* do we have any important messages we need to show? */
array_messages = pk_results_get_message_array (results);
for (i=0; i<array_messages->len; i++) {
- message = g_ptr_array_index (array, i);
+ message = g_ptr_array_index (array_messages, i);
g_object_get (message,
"type", &message_type,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]