summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-07-05 23:33:42 -0400
committerRyan Lortie <desrt@desrt.ca>2012-07-06 00:19:44 -0400
commitb332aa9ef1a5425a8f2213289e00a38e3c9ee868 (patch)
tree5d0861b664f3e3b49916d945ef88455932f7c1a2 /gdbus
parent54f67cd8251e78ec8b639608df784199679e186a (diff)
downloaddconf-b332aa9ef1a5425a8f2213289e00a38e3c9ee868.tar.gz
GDBus backend: only write to error if non-NULL
Convention says GError ** can be NULL, so we better check for that.
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/dconf-gdbus-thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdbus/dconf-gdbus-thread.c b/gdbus/dconf-gdbus-thread.c
index c4a851d..14183d0 100644
--- a/gdbus/dconf-gdbus-thread.c
+++ b/gdbus/dconf-gdbus-thread.c
@@ -157,7 +157,8 @@ dconf_gdbus_get_bus_common (GBusType bus_type,
{
if (dconf_gdbus_get_bus_is_error[bus_type])
{
- *error = dconf_gdbus_get_bus_data[bus_type];
+ if (error)
+ *error = dconf_gdbus_get_bus_data[bus_type];
return NULL;
}