aboutsummaryrefslogtreecommitdiffstats
path: root/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'env.c')
-rw-r--r--env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env.c b/env.c
index f9a3bf9a..46733f3b 100644
--- a/env.c
+++ b/env.c
@@ -108,7 +108,7 @@ void envquery(int argc, char **argv)
/* compute user's home directory */
home = getenv("HOME_ETC");
if (!home && !(home = getenv("HOME")))
- home = pwp->pw_dir;
+ home = xstrdup(pwp->pw_dir);
/* compute fetchmail's home directory */
if (!(fmhome = getenv("FETCHMAILHOME")))