* lib/encrypt.c: Add parenthesis.
+2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
+
+ * lib/encrypt.c: Avoid implicit conversion of pointers to
+ booleans.
+ * lib/encrypt.c: Add parenthesis.
+
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/port.c: Avoid implicit conversion of pointers / integers /
/* The GNU crypt does not return NULL if the algorithm is not
* supported, and return a DES encrypted password. */
- if (salt && salt[0] == '$' && strlen (cp) <= 13)
+ if ((NULL != salt) && (salt[0] == '$') && (strlen (cp) <= 13))
{
const char *method;
switch (salt[1])
return cipher;
}
+