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

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sun May 25 23:50:05 UTC 2008


Author: nekral-guest
Date: 2008-05-25 23:50:03 +0000 (Sun, 25 May 2008)
New Revision: 2042

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/setupenv.c
Log:
Avoid implicit conversion of chars to booleans.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-05-25 23:45:21 UTC (rev 2041)
+++ upstream/trunk/ChangeLog	2008-05-25 23:50:03 UTC (rev 2042)
@@ -1,5 +1,10 @@
 2008-05-26  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* libmisc/setupenv.c: Avoid implicit conversion of chars to
+	booleans.
+
+2008-05-26  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* libmisc/copydir.c: selinux_checked, selinux_enabled, and set_orig
 	are now booleans.
 

Modified: upstream/trunk/libmisc/setupenv.c
===================================================================
--- upstream/trunk/libmisc/setupenv.c	2008-05-25 23:45:21 UTC (rev 2041)
+++ upstream/trunk/libmisc/setupenv.c	2008-05-25 23:50:03 UTC (rev 2042)
@@ -229,7 +229,7 @@
 	 * Create the SHELL environmental variable and export it.
 	 */
 
-	if (info->pw_shell == (char *) 0 || !*info->pw_shell) {
+	if ((NULL == info->pw_shell) || ('\0' == *info->pw_shell)) {
 		static char temp_pw_shell[] = "/bin/sh";
 
 		info->pw_shell = temp_pw_shell;




More information about the Pkg-shadow-commits mailing list