[Pkg-shadow-commits] r2120 - upstream/trunk/src
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Tue Jun 10 22:10:48 UTC 2008
Author: nekral-guest
Date: 2008-06-10 22:10:47 +0000 (Tue, 10 Jun 2008)
New Revision: 2120
Modified:
upstream/trunk/src/chsh.c
Log:
Avoid implicit conversion of pointers to booleans.
Modified: upstream/trunk/src/chsh.c
===================================================================
--- upstream/trunk/src/chsh.c 2008-06-10 22:10:21 UTC (rev 2119)
+++ upstream/trunk/src/chsh.c 2008-06-10 22:10:47 UTC (rev 2120)
@@ -159,7 +159,7 @@
return false;
}
- while (fgets (buf, sizeof (buf), fp)) {
+ while (fgets (buf, sizeof (buf), fp) == buf) {
cp = strrchr (buf, '\n');
if (NULL != cp) {
*cp = '\0';
More information about the Pkg-shadow-commits
mailing list