diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-07-05 23:33:42 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-07-06 00:19:44 -0400 |
commit | b332aa9ef1a5425a8f2213289e00a38e3c9ee868 (patch) | |
tree | 5d0861b664f3e3b49916d945ef88455932f7c1a2 /gdbus | |
parent | 54f67cd8251e78ec8b639608df784199679e186a (diff) | |
download | dconf-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.c | 3 |
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; } |