* grp.cc (parse_grp): Save empty array instead of

NULL in gr_mem if no supplementary group is given.
This commit is contained in:
Corinna Vinschen
2000-04-03 18:08:13 +00:00
parent cf11ab4e66
commit 476839eb03
2 changed files with 6 additions and 1 deletions

View File

@@ -92,7 +92,7 @@ parse_grp (struct group &grp, const char *line)
grp.gr_mem = namearray;
}
else
grp.gr_mem = NULL;
grp.gr_mem = (char **) calloc (1, sizeof (char *));
return 1;
}
}