[gnome-settings-daemon] updates: array can never be NULL
- From: Bastien Nocera <hadess src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-settings-daemon] updates: array can never be NULL
 
- Date: Thu, 20 Oct 2011 16:00:41 +0000 (UTC)
 
commit fb429beb11b07538d39ab7c63932288420788fa2
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 20 16:39:57 2011 +0100
    updates: array can never be NULL
 plugins/updates/gsd-updates-manager.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/updates/gsd-updates-manager.c b/plugins/updates/gsd-updates-manager.c
index 90ea246..4ed046c 100644
--- a/plugins/updates/gsd-updates-manager.c
+++ b/plugins/updates/gsd-updates-manager.c
@@ -590,8 +590,7 @@ notify_update_finished (GsdUpdatesManager *manager, PkResults *results)
 out:
         if (message_text != NULL)
                 g_string_free (message_text, TRUE);
-        if (array != NULL)
-                g_ptr_array_unref (array);
+        g_ptr_array_unref (array);
 }
 
 static void
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]