Fix compiler warning

This commit is contained in:
Pasi Kallinen
2016-06-20 13:21:22 +03:00
parent 53e8869a16
commit d91d445fc6

View File

@@ -91,7 +91,7 @@ void
getmailstatus()
{
char *emailbox;
if (emailbox = nh_getenv("MAIL")) {
if ((emailbox = nh_getenv("MAIL")) != 0) {
mailbox = (char *) alloc((unsigned) strlen(emailbox));
Strcpy(mailbox, emailbox);
}