summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-05-15 17:54:32 +0200
committerLennart Poettering <lennart@poettering.net>2014-05-15 18:09:20 +0200
commit7e28adeb63818ee96dac015c0766be461e13fb64 (patch)
tree376bd3d4183ae2c8dfe6ad69c45b3181b95f13c5
parentb7a2bd82702a30e8f61097235515766df21e74b4 (diff)
sd-bus: make sure we properly handle NULL callback functions
-rw-r--r--src/libsystemd/sd-bus/bus-match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-match.c b/src/libsystemd/sd-bus/bus-match.c
index 3391b1a1b6..9e0769caa6 100644
--- a/src/libsystemd/sd-bus/bus-match.c
+++ b/src/libsystemd/sd-bus/bus-match.c
@@ -289,7 +289,7 @@ int bus_match_run(
return r;
/* Run the callback. And then invoke siblings. */
- if (node->leaf.callback) {
+ if (node->leaf.callback->callback) {
_cleanup_bus_error_free_ sd_bus_error error_buffer = SD_BUS_ERROR_NULL;
sd_bus_slot *slot;