[gnome-settings-daemon] updates: string cannot be NULL



commit 4ff51560aa8d90fb60dfa49f70002ed05ba77202
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 20 16:41:48 2011 +0100

    updates: string cannot be NULL

 plugins/updates/gsd-updates-firmware.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/updates/gsd-updates-firmware.c b/plugins/updates/gsd-updates-firmware.c
index 837f749..17ca804 100644
--- a/plugins/updates/gsd-updates-firmware.c
+++ b/plugins/updates/gsd-updates-firmware.c
@@ -410,7 +410,7 @@ ignore_devices (GsdUpdatesFirmware *firmware)
         gchar *existing = NULL;
         GsdUpdatesFirmwareRequest *req;
         GPtrArray *array;
-        GString *string = NULL;
+        GString *string;
         guint i;
 
         /* get from settings */
@@ -439,8 +439,7 @@ ignore_devices (GsdUpdatesFirmware *firmware)
                                string->str);
 
         g_free (existing);
-        if (string != NULL)
-                g_string_free (string, TRUE);
+        g_string_free (string, TRUE);
 }
 
 static PkPackage *



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