[dconf/dconf-0.8] Remove unused 'error' variable



commit 175cc2338aad35e61b8a82298997da859d8e3940
Author: Ryan Lortie <desrt desrt ca>
Date:   Sun Jul 24 09:52:40 2011 +0200

    Remove unused 'error' variable
    
    We never consumed the value, and then we reused it, causing warnings
    about uninitialised error variables.  Just remove it altogether.
    
    Caught by Matthias.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=655193

 gsettings/dconfsettingsbackend.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gsettings/dconfsettingsbackend.c b/gsettings/dconfsettingsbackend.c
index 77d9358..1e141f8 100644
--- a/gsettings/dconfsettingsbackend.c
+++ b/gsettings/dconfsettingsbackend.c
@@ -128,7 +128,6 @@ dconf_settings_backend_send (DConfSettingsBackend *dcsb,
                              gpointer              user_data)
 {
   GDBusConnection *connection;
-  GError *error = NULL;
   gint i;
 
   for (i = 0; i < dcem->n_messages; i++)
@@ -139,7 +138,7 @@ dconf_settings_backend_send (DConfSettingsBackend *dcsb,
           if (dcsb->session_bus == NULL && callback)
             {
               dcsb->session_bus =
-                g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
+                g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);
 
               if (dcsb->session_bus != NULL)
                 dcsb->session_subscription =
@@ -157,7 +156,7 @@ dconf_settings_backend_send (DConfSettingsBackend *dcsb,
           if (dcsb->system_bus == NULL && callback)
             {
               dcsb->system_bus =
-                g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error);
+                g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL);
 
               if (dcsb->system_bus != NULL)
                 dcsb->system_subscription =



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