summaryrefslogtreecommitdiff
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:35 +0200
commit175cc2338aad35e61b8a82298997da859d8e3940 (patch)
tree085fe1e94d6dc1788cbdde215600c2e7b804d2bb
parentbf02b803859ecccc2fe1eea488c4f6da55df1e1a (diff)
downloaddconf-175cc2338aad35e61b8a82298997da859d8e3940.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
-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 =