summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-11-25 15:21:32 -0500
committerRyan Lortie <desrt@desrt.ca>2013-11-25 15:21:32 -0500
commitf75da1af04b2e96bd46bc16d1feb5e4ce991b571 (patch)
tree6f534d221817a91bc0e03ba034c124fd74a326ca /engine
parent5c2e59a41cf4b9114ff3a5a1baa3f9431f971e3c (diff)
downloaddconf-f75da1af04b2e96bd46bc16d1feb5e4ce991b571.tar.gz
engine: allow NULL handle
We use a NULL handle in case we don't care about the return value. In that case, we certainly don't care about the return type either, so use NULL for expected_type in this case.
Diffstat (limited to 'engine')
-rw-r--r--engine/dconf-engine.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/dconf-engine.c b/engine/dconf-engine.c
index 706a856..af98cdf 100644
--- a/engine/dconf-engine.c
+++ b/engine/dconf-engine.c
@@ -707,7 +707,10 @@ dconf_engine_call_handle_new (DConfEngine *engine,
const GVariantType *
dconf_engine_call_handle_get_expected_type (DConfEngineCallHandle *handle)
{
- return handle->expected_reply;
+ if (handle)
+ return handle->expected_reply;
+ else
+ return NULL;
}
void