--- src/homedir.c.orig 2007-04-02 16:53:28.000000000 -0700 +++ src/homedir.c 2007-04-02 16:55:07.000000000 -0700 @@ -106,6 +106,8 @@ #endif if (home && home[0]) home = strdup(home); + else + home = NULL; } } #endif /* PWD-stuff */