]> granicus.if.org Git - nethack/commitdiff
Fix compiler warning
authorPasi Kallinen <paxed@alt.org>
Mon, 20 Jun 2016 10:21:22 +0000 (13:21 +0300)
committerPasi Kallinen <paxed@alt.org>
Mon, 20 Jun 2016 10:21:22 +0000 (13:21 +0300)
src/mail.c

index 82c7c0925957450acb1f3fe093d19a5d5d34e658..946f81634b6cca396319b9ca838e573f104c2890 100644 (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);
     }