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:
Lennart Poettering 2018-11-29 11:10:37 +01:00
parent c45e7e0cbf
commit f67cb27060
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}