diff -ruN imap-2001a.orig/src/osdep/unix/env_unix.c imap-2001a/src/osdep/unix/env_unix.c --- imap-2001a.orig/src/osdep/unix/env_unix.c Wed Oct 17 23:27:59 2001 +++ imap-2001a/src/osdep/unix/env_unix.c Sun Jan 13 14:49:33 2002 @@ -631,6 +631,8 @@ struct passwd *pw; struct stat sbuf; char tmp[MAILTMPLEN]; + + memset (tmp, 0, MAILTMPLEN); /* zero out tmp */ if (myUserName) fatal ("env_init called twice!"); /* myUserName must be set before dorc() call */ myUserName = cpystr (user ? user : ANONYMOUSUSER); @@ -676,6 +678,8 @@ myHomeDir = cpystr (home); /* set home directory */ } + if(!myHomeDir) myHomeDir = cpystr(""); /* if myHomeDir is still a null pointer */ + if (allowuserconfig) { /* allow user config files */ dorc (strcat (strcpy (tmp,myHomeDir),"/.mminit"),T); dorc (strcat (strcpy (tmp,myHomeDir),"/.imaprc"),NIL);