[Pkg-shadow-commits] r2044 - in upstream/trunk: . libmisc

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sun May 25 23:59:06 UTC 2008


Author: nekral-guest
Date: 2008-05-25 23:59:05 +0000 (Sun, 25 May 2008)
New Revision: 2044

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/mail.c
Log:
	* libmisc/mail.c: Avoid implicit conversion of pointers to booleans.
	* libmisc/mail.c: Avoid assignments in comparisons.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-05-25 23:57:41 UTC (rev 2043)
+++ upstream/trunk/ChangeLog	2008-05-25 23:59:05 UTC (rev 2044)
@@ -1,5 +1,11 @@
 2008-05-26  Nicolas François  <nicolas.francois at 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 at centraliens.net>
+
 	* libmisc/loginprompt.c: Avoid implicit conversion of pointers /
 	chars to booleans.
 	* libmisc/loginprompt.c: Add brackets.

Modified: upstream/trunk/libmisc/mail.c
===================================================================
--- upstream/trunk/libmisc/mail.c	2008-05-25 23:57:41 UTC (rev 2043)
+++ upstream/trunk/libmisc/mail.c	2008-05-25 23:59:05 UTC (rev 2044)
@@ -52,7 +52,8 @@
 	/*
 	 * Check incoming mail in Maildir format - J.
 	 */
-	if ((mailbox = getenv ("MAILDIR"))) {
+	mailbox = getenv ("MAILDIR");
+	if (NULL != mailbox) {
 		char *newmail;
 
 		newmail = xmalloc (strlen (mailbox) + 5);




More information about the Pkg-shadow-commits mailing list