* 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>
|
2008-07-12 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* ChangeLog, NEWS, src/login.c: Re-inject the changes from 4.1.2.1.
|
* 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') {
|
while (s != NULL && *s != '\0') {
|
||||||
size = (nelem + 1) * sizeof (ptr);
|
size = (nelem + 1) * sizeof (ptr);
|
||||||
if ((ptr = realloc (*list, size)) != NULL) {
|
ptr = realloc (*list, size);
|
||||||
|
if (NULL != ptr) {
|
||||||
ptr[nelem] = s;
|
ptr[nelem] = s;
|
||||||
nelem++;
|
nelem++;
|
||||||
*list = ptr;
|
*list = ptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user