]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - lsu.c
Consult $HOME rather than calling getpwuid(),
[paraslash.git] / lsu.c
diff --git a/lsu.c b/lsu.c
index 8ccf80d541929194f984759e38d7ffa7998d3c97..3cd6ba04e4f41a26cd8e235b0ff8899aea11ab9a 100644 (file)
--- a/lsu.c
+++ b/lsu.c
@@ -182,9 +182,8 @@ int lsu_merge_config_file_options(const char *path, const char *dflt,
        if (path)
                cf = para_strdup(path);
        else {
-               char *home = para_homedir();
+               const char *home = get_homedir();
                cf = make_message("%s/.paraslash/%s", home, dflt);
-               free(home);
        }
        ret = mmap_full_file(cf, O_RDONLY, &map, &sz, NULL);
        if (ret < 0) {