From: Pasi Kallinen Date: Mon, 20 Jun 2016 10:21:22 +0000 (+0300) Subject: Fix compiler warning X-Git-Tag: NetHack-3.6.1_RC01~661 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d91d445fc633adc34d300d03e8d9c479466326e0;p=nethack Fix compiler warning --- diff --git a/src/mail.c b/src/mail.c index 82c7c0925..946f81634 100644 --- a/src/mail.c +++ b/src/mail.c @@ -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); }