[Pkg-shadow-commits] r1573 - upstream/trunk/src

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Mon Dec 31 14:37:24 UTC 2007


Author: nekral-guest
Date: 2007-12-31 14:37:24 +0000 (Mon, 31 Dec 2007)
New Revision: 1573

Modified:
   upstream/trunk/src/chfn.c
Log:
Avoid assignments in comparisons.


Modified: upstream/trunk/src/chfn.c
===================================================================
--- upstream/trunk/src/chfn.c	2007-12-31 14:25:06 UTC (rev 1572)
+++ upstream/trunk/src/chfn.c	2007-12-31 14:37:24 UTC (rev 1573)
@@ -210,7 +210,8 @@
 	char *cp = NULL;
 
 	while (NULL != in) {
-		if ((cp = strchr (in, ',')) != NULL) {
+		cp = strchr (in, ',');
+		if (NULL != cp) {
 			*cp++ = '\0';
 		}
 




More information about the Pkg-shadow-commits mailing list