[gnome-control-center/gnome-3-2] info: Avoid re-using a non-NULL error



commit cc615f2b9ba9ebe2e41b8e3eeb15fbf060df8266
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Sep 20 16:52:40 2011 +0100

    info: Avoid re-using a non-NULL error

 panels/info/cc-info-panel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index 473b50f..74cd0ce 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -1079,6 +1079,7 @@ info_panel_set_hostname (CcInfoPanel *self,
     {
       g_warning ("Could not set PrettyHostname: %s", error->message);
       g_error_free (error);
+      error = NULL;
     }
   else
     {



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