[yelp] Pass &error to g_bus_get_sync () so it is set when used later



commit fa175d91faf11fd1f9d66dc1c1d9e89debc2bb55
Author: Michael Biebl <biebl debian org>
Date:   Sat Oct 1 06:47:36 2011 +0200

    Pass &error to g_bus_get_sync () so it is set when used later
    
    https://bugzilla.gnome.org/show_bug.cgi?id=660579

 libyelp/yelp-settings.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-settings.c b/libyelp/yelp-settings.c
index 4d3ec4a..9ada451 100644
--- a/libyelp/yelp-settings.c
+++ b/libyelp/yelp-settings.c
@@ -251,7 +251,7 @@ yelp_settings_constructed (GObject *object)
     gboolean env_shell, env_panel, env_unity, env_xfce;
     GError *error = NULL;
 
-    connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);
+    connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
     if (connection == NULL) {
         g_warning ("Unable to connect to dbus: %s", error->message);
         g_error_free (error);



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