diff options
author | Ryan Lortie <desrt@desrt.ca> | 2013-11-25 15:21:32 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2013-11-25 15:21:32 -0500 |
commit | f75da1af04b2e96bd46bc16d1feb5e4ce991b571 (patch) | |
tree | 6f534d221817a91bc0e03ba034c124fd74a326ca /engine | |
parent | 5c2e59a41cf4b9114ff3a5a1baa3f9431f971e3c (diff) | |
download | dconf-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.c | 5 |
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 |