* libmisc/mail.c: Avoid implicit conversion of pointers to booleans.

* libmisc/mail.c: Avoid assignments in comparisons.
This commit is contained in:
nekral-guest 2008-05-25 23:59:05 +00:00
parent 3169455653
commit c249832df1
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/mail.c: Avoid implicit conversion of pointers to
booleans.
* libmisc/mail.c: Avoid assignments in comparisons.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/loginprompt.c: Avoid implicit conversion of pointers /

View File

@ -52,7 +52,8 @@ void mailcheck (void)
/*
* Check incoming mail in Maildir format - J.
*/
if ((mailbox = getenv ("MAILDIR"))) {
mailbox = getenv ("MAILDIR");
if (NULL != mailbox) {
char *newmail;
newmail = xmalloc (strlen (mailbox) + 5);