]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - lsu.c
Replace get_homedir() by get_confdir().
[paraslash.git] / lsu.c
diff --git a/lsu.c b/lsu.c
index 8ccf80d541929194f984759e38d7ffa7998d3c97..75114e68a5fa443ca675987b05bb9eb452ee9270 100644 (file)
--- a/lsu.c
+++ b/lsu.c
@@ -179,13 +179,8 @@ int lsu_merge_config_file_options(const char *path, const char *dflt,
        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)