mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-26 21:00:21 +00:00
path: use mp_path_join in one more place
This commit is contained in:
@@ -118,7 +118,7 @@ static char **mp_find_all_config_files_limited(void *talloc_ctx,
|
||||
bstr fn;
|
||||
bstr_split_tok(s, "|", &fn, &s);
|
||||
|
||||
char *file = talloc_asprintf(ret, "%s/%.*s", dir, BSTR_P(fn));
|
||||
char *file = mp_path_join_bstr(ret, bstr0(dir), fn);
|
||||
if (mp_path_exists(file))
|
||||
MP_TARRAY_APPEND(NULL, ret, num_ret, file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user