* lib/gshadow.c: Avoid assignments in comparison.
This commit is contained in:
parent
21c692d23f
commit
95c78ce92b
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user