* lib/groupio.c: Avoid implicit conversion from signed to unsigned.

This commit is contained in:
nekral-guest 2010-08-20 20:35:52 +00:00
parent 22294bfac8
commit 4f667bb442
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2010-08-20 Nicolas François <nicolas.francois@centraliens.net>
* lib/groupio.c: Avoid implicit conversion from signed to unsigned.
2010-08-20 Nicolas François <nicolas.francois@centraliens.net> 2010-08-20 Nicolas François <nicolas.francois@centraliens.net>
* lib/commonio.c: Make sure there are no NULL pointer dereference. * lib/commonio.c: Make sure there are no NULL pointer dereference.

View File

@ -382,16 +382,19 @@ static int split_groups (unsigned int max_members)
struct commonio_entry *new; struct commonio_entry *new;
struct group *new_gptr; struct group *new_gptr;
unsigned int members = 0; unsigned int members = 0;
int i; unsigned int i;
/* Check if this group must be split */ /* Check if this group must be split */
if (!gr->changed) if (!gr->changed) {
continue; continue;
if (NULL == gptr) }
if (NULL == gptr) {
continue; continue;
}
for (members = 0; NULL != gptr->gr_mem[members]; members++); for (members = 0; NULL != gptr->gr_mem[members]; members++);
if (members <= max_members) if (members <= max_members) {
continue; continue;
}
new = (struct commonio_entry *) malloc (sizeof *new); new = (struct commonio_entry *) malloc (sizeof *new);
if (NULL == new) { if (NULL == new) {