Avoid implicit conversion of pointers to booleans.
This commit is contained in:
1 parent
6bb86709ee
commit
55b2e44814
1 file changed
+1
-1
+1
-1
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user