[Pkg-shadow-commits] r2067 - upstream/trunk/lib

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Mon May 26 09:12:36 UTC 2008


Author: nekral-guest
Date: 2008-05-26 09:12:34 +0000 (Mon, 26 May 2008)
New Revision: 2067

Modified:
   upstream/trunk/lib/sgetgrent.c
Log:
* Avoid implicit conversion of pointers to booleans.
* Add parenthesis.


Modified: upstream/trunk/lib/sgetgrent.c
===================================================================
--- upstream/trunk/lib/sgetgrent.c	2008-05-26 08:59:54 UTC (rev 2066)
+++ upstream/trunk/lib/sgetgrent.c	2008-05-26 09:12:34 UTC (rev 2067)
@@ -127,7 +127,7 @@
 		*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) {




More information about the Pkg-shadow-commits mailing list