mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-03 23:38:39 +00:00
bus: fix unitialized variable access in error path
This commit is contained in:
@@ -1602,7 +1602,7 @@ static int add_object_vtable_internal(
|
||||
sd_bus_object_find_t find,
|
||||
void *userdata) {
|
||||
|
||||
sd_bus_slot *s;
|
||||
sd_bus_slot *s = NULL;
|
||||
struct node_vtable *i, *existing = NULL;
|
||||
const sd_bus_vtable *v;
|
||||
struct node *n;
|
||||
|
||||
@@ -2821,7 +2821,7 @@ _public_ int sd_bus_add_match(
|
||||
|
||||
struct bus_match_component *components = NULL;
|
||||
unsigned n_components = 0;
|
||||
sd_bus_slot *s;
|
||||
sd_bus_slot *s = NULL;
|
||||
int r = 0;
|
||||
|
||||
assert_return(bus, -EINVAL);
|
||||
|
||||
Reference in New Issue
Block a user