many: fix remaining check-pointer-deref issues
The updated parsing_hacks.h file uncovered a bunch of extra things that the check-pointer-deref coccinelle script flags. This commit fixes them to make the tree check-pointer-deref clean.
This commit is contained in:
@@ -193,6 +193,7 @@ static int call_get_addresses(
|
||||
assert(name);
|
||||
assert(prefix);
|
||||
assert(prefix2);
|
||||
assert(ret);
|
||||
|
||||
r = bus_call_method(bus, bus_machine_mgr, "GetMachineAddresses", NULL, &reply, "s", name);
|
||||
if (r < 0)
|
||||
|
||||
@@ -257,6 +257,8 @@ static int machine_add_from_params(
|
||||
assert(message);
|
||||
assert(name);
|
||||
assert(c == _MACHINE_CLASS_INVALID || MACHINE_CLASS_CAN_REGISTER(c));
|
||||
assert(leader_pidref);
|
||||
assert(supervisor_pidref);
|
||||
assert(ret);
|
||||
|
||||
if (leader_pidref->pid == 1)
|
||||
|
||||
Reference in New Issue
Block a user