summaryrefslogtreecommitdiffstats
path: root/jnlib/t-stringhelp.c
diff options
context:
space:
mode:
Diffstat (limited to 'jnlib/t-stringhelp.c')
-rw-r--r--jnlib/t-stringhelp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jnlib/t-stringhelp.c b/jnlib/t-stringhelp.c
index 02041d35e..0c921b03d 100644
--- a/jnlib/t-stringhelp.c
+++ b/jnlib/t-stringhelp.c
@@ -43,9 +43,9 @@ gethome (void)
{
char *home = getenv("HOME");
-#if defined(HAVE_GETPWUID) && defined(HAVE_PWD_H)
if(home)
home_buffer = xstrdup (home);
+#if defined(HAVE_GETPWUID) && defined(HAVE_PWD_H)
else
{
struct passwd *pwd;