summaryrefslogtreecommitdiff
path: root/gsettings
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-07-24 09:52:40 +0200
committerRyan Lortie <desrt@desrt.ca>2011-07-24 11:05:23 +0200
commit6d74d372de6c68774edcccb1727221c59475b0d3 (patch)
tree7f0eea3f10f02984ae5ff983711f51ef9a37f36a /gsettings
parente103f710c6ac5b9db21a88bd904b104bda1bf911 (diff)
downloaddconf-6d74d372de6c68774edcccb1727221c59475b0d3.tar.gz
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
Diffstat (limited to 'gsettings')
-rw-r--r--gsettings/dconfsettingsbackend.c5
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 =