Merge pull request #31590 from YHNdnzj/install-cleanup

shared/install: several cleanups
This commit is contained in:
Luca Boccassi
2024-03-07 11:28:04 +00:00
committed by GitHub
17 changed files with 245 additions and 257 deletions
+2 -3
View File
@@ -776,9 +776,8 @@ int lookup_paths_init_or_warn(LookupPaths *lp, RuntimeScope scope, LookupPathsFl
return r;
}
void lookup_paths_free(LookupPaths *lp) {
if (!lp)
return;
void lookup_paths_done(LookupPaths *lp) {
assert(lp);
lp->search_path = strv_free(lp->search_path);
+1 -1
View File
@@ -65,7 +65,7 @@ bool path_is_user_data_dir(const char *path);
bool path_is_user_config_dir(const char *path);
void lookup_paths_log(LookupPaths *p);
void lookup_paths_free(LookupPaths *p);
void lookup_paths_done(LookupPaths *p);
char **generator_binary_paths(RuntimeScope scope);
char **env_generator_binary_paths(RuntimeScope scope);