* lib/gshadow.c: Avoid assignments in comparison.

This commit is contained in:
nekral-guest 2008-07-11 22:23:42 +00:00
parent 21c692d23f
commit 95c78ce92b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-07-12 Nicolas François <nicolas.francois@centraliens.net>
* lib/gshadow.c: Avoid assignments in comparison.
2008-07-12 Nicolas François <nicolas.francois@centraliens.net>
* ChangeLog, NEWS, src/login.c: Re-inject the changes from 4.1.2.1.

View File

@ -86,7 +86,8 @@ static char **build_list (char *s, char **list[], size_t * nlist)
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;