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:
@@ -44,6 +44,8 @@ static int service_name_to_dbus(sd_bus *bus, const char *name, char **ret_dbus_n
|
||||
_cleanup_free_ char *bus_name = NULL;
|
||||
int r;
|
||||
|
||||
assert(ret_dbus_name);
|
||||
|
||||
/* First, look for the BusName= property */
|
||||
_cleanup_free_ char *dbus_path = unit_dbus_path_from_name(name);
|
||||
if (!dbus_path)
|
||||
|
||||
Reference in New Issue
Block a user