* Avoid implicit conversion of pointers to booleans.
* Add parenthesis.
This commit is contained in:
parent
94b414861d
commit
64d0313c5b
@ -127,7 +127,7 @@ struct group *sgetgrent (const char *buf)
|
|||||||
*cp = '\0';
|
*cp = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
for (cp = grpbuf, i = 0; i < NFIELDS && cp; i++) {
|
for (cp = grpbuf, i = 0; (i < NFIELDS) && (NULL != cp); i++) {
|
||||||
grpfields[i] = cp;
|
grpfields[i] = cp;
|
||||||
cp = strchr (cp, ':');
|
cp = strchr (cp, ':');
|
||||||
if (NULL != cp) {
|
if (NULL != cp) {
|
||||||
|
Loading…
Reference in New Issue
Block a user