mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
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:
parent
d5c8d8233c
commit
bf135d288d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user