Avoid implicit conversion of pointers to booleans.

This commit is contained in:
nekral-guest 2008-06-10 22:10:47 +00:00
parent 6bb86709ee
commit 55b2e44814

View File

@ -159,7 +159,7 @@ static bool shell_is_listed (const char *sh)
return false;
}
while (fgets (buf, sizeof (buf), fp)) {
while (fgets (buf, sizeof (buf), fp) == buf) {
cp = strrchr (buf, '\n');
if (NULL != cp) {
*cp = '\0';