path: use mp_path_join in one more place

This commit is contained in:
wm4
2015-05-09 16:25:53 +02:00
parent b6346cd0ba
commit 6d93dd8969

View File

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