+2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
+
+ * libmisc/setupenv.c: Avoid implicit conversion of chars to
+ booleans.
+
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/copydir.c: selinux_checked, selinux_enabled, and set_orig
* 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;