* Avoid implicit conversion of pointers to booleans.

* Add parenthesis.
This commit is contained in:
nekral-guest 2008-05-26 09:12:34 +00:00
parent 94b414861d
commit 64d0313c5b

View File

@ -127,7 +127,7 @@ struct group *sgetgrent (const char *buf)
*cp = '\0';
}
for (cp = grpbuf, i = 0; i < NFIELDS && cp; i++) {
for (cp = grpbuf, i = 0; (i < NFIELDS) && (NULL != cp); i++) {
grpfields[i] = cp;
cp = strchr (cp, ':');
if (NULL != cp) {