[Pkg-shadow-commits] r2205 - in upstream/trunk: . lib
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Fri Jul 11 22:23:43 UTC 2008
Author: nekral-guest
Date: 2008-07-11 22:23:42 +0000 (Fri, 11 Jul 2008)
New Revision: 2205
Modified:
upstream/trunk/ChangeLog
upstream/trunk/lib/gshadow.c
Log:
* lib/gshadow.c: Avoid assignments in comparison.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-07-11 22:20:43 UTC (rev 2204)
+++ upstream/trunk/ChangeLog 2008-07-11 22:23:42 UTC (rev 2205)
@@ -1,5 +1,9 @@
2008-07-12 Nicolas François <nicolas.francois at centraliens.net>
+ * lib/gshadow.c: Avoid assignments in comparison.
+
+2008-07-12 Nicolas François <nicolas.francois at centraliens.net>
+
* ChangeLog, NEWS, src/login.c: Re-inject the changes from 4.1.2.1.
2008-07-11 Nicolas François <nicolas.francois at centraliens.net>
Modified: upstream/trunk/lib/gshadow.c
===================================================================
--- upstream/trunk/lib/gshadow.c 2008-07-11 22:20:43 UTC (rev 2204)
+++ upstream/trunk/lib/gshadow.c 2008-07-11 22:23:42 UTC (rev 2205)
@@ -86,7 +86,8 @@
while (s != NULL && *s != '\0') {
size = (nelem + 1) * sizeof (ptr);
- if ((ptr = realloc (*list, size)) != NULL) {
+ ptr = realloc (*list, size);
+ if (NULL != ptr) {
ptr[nelem] = s;
nelem++;
*list = ptr;
More information about the Pkg-shadow-commits
mailing list