core/load-fragment: remove unnecessary intialization
manager_load_unit() better set it on success, and unit_set_slice() asserts that the argument is not NULL, so initializing it to NULL is not useful.
This commit is contained in:
@@ -3086,7 +3086,7 @@ int config_parse_unit_slice(
|
||||
|
||||
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
|
||||
_cleanup_free_ char *k = NULL;
|
||||
Unit *u = userdata, *slice = NULL;
|
||||
Unit *u = userdata, *slice;
|
||||
int r;
|
||||
|
||||
assert(filename);
|
||||
|
||||
Reference in New Issue
Block a user