Avoid implicit conversion of pointers to booleans.
This commit is contained in:
parent
6bb86709ee
commit
55b2e44814
@ -159,7 +159,7 @@ static bool shell_is_listed (const char *sh)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (fgets (buf, sizeof (buf), fp)) {
|
while (fgets (buf, sizeof (buf), fp) == buf) {
|
||||||
cp = strrchr (buf, '\n');
|
cp = strrchr (buf, '\n');
|
||||||
if (NULL != cp) {
|
if (NULL != cp) {
|
||||||
*cp = '\0';
|
*cp = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user