struct lls_parse_result *old_lpr = *lpr, *cf_lpr, *merged_lpr;
const char *subcmd_name;
- if (path)
- cf = para_strdup(path);
- else {
- char *home = para_homedir();
- cf = make_message("%s/.paraslash/%s", home, dflt);
- free(home);
- }
+ cf = path? para_strdup(path) : make_message("%s/%s",
+ get_confdir(), dflt);
ret = mmap_full_file(cf, O_RDONLY, &map, &sz, NULL);
if (ret < 0) {
if (ret == -E_EMPTY)