Fix crash with MAIL env variable
This commit is contained in:
@@ -90,7 +90,12 @@ free_maildata()
|
|||||||
void
|
void
|
||||||
getmailstatus()
|
getmailstatus()
|
||||||
{
|
{
|
||||||
if (!mailbox && !(mailbox = nh_getenv("MAIL"))) {
|
char *emailbox;
|
||||||
|
if (emailbox = nh_getenv("MAIL")) {
|
||||||
|
mailbox = (char *) alloc((unsigned) strlen(emailbox));
|
||||||
|
Strcpy(mailbox, emailbox);
|
||||||
|
}
|
||||||
|
if (!mailbox) {
|
||||||
#ifdef MAILPATH
|
#ifdef MAILPATH
|
||||||
#ifdef AMS
|
#ifdef AMS
|
||||||
struct passwd ppasswd;
|
struct passwd ppasswd;
|
||||||
|
|||||||
Reference in New Issue
Block a user