sd-bus: make sure we properly handle NULL callback functions

This commit is contained in:
Lennart Poettering
2014-05-15 18:09:20 +02:00
parent b7a2bd8270
commit 7e28adeb63
+1 -1
View File
@@ -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;