systemctl: make sure we initialize return parameters in unit_file_find_path() on success
According to our coding style return values should be initialized when we return any form of success, do so here too.
This commit is contained in:
parent
c45e7e0cbf
commit
f67cb27060
|
@ -2443,6 +2443,9 @@ static int unit_file_find_path(LookupPaths *lp, const char *unit_name, char **re
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (ret_unit_path)
|
||||
*ret_unit_path = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue