Changeset 902 in MondoRescue for branches/stable/mindi-busybox/coreutils/test.c
- Timestamp:
- Oct 25, 2006, 12:41:23 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/coreutils/test.c
r821 r902 152 152 static char **t_wp; 153 153 static struct t_op const *t_wp_op; 154 static gid_t *group_array = NULL;154 static gid_t *group_array; 155 155 static int ngroups; 156 156 … … 548 548 { 549 549 ngroups = getgroups(0, NULL); 550 group_array = xrealloc(group_array, ngroups * sizeof(gid_t)); 551 getgroups(ngroups, group_array); 550 if (ngroups > 0) { 551 group_array = xmalloc(ngroups * sizeof(gid_t)); 552 getgroups(ngroups, group_array); 553 } 552 554 } 553 555
Note:
See TracChangeset
for help on using the changeset viewer.