sd-bus: when running user find function don't trust the value to be initialized

The find function is externally provided, and we shouldn't trust that the
authors remember to set the output parameter in all cases.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-04-21 22:25:03 +02:00
parent d5c8d8233c
commit bf135d288d
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ static int node_vtable_get_userdata(
sd_bus_error *error) {
sd_bus_slot *s;
void *u, *found_u;
void *u, *found_u = NULL;
int r;
assert(bus);