Changeset 904 in MondoRescue for trunk/mindi-busybox/coreutils/test.c


Ignore:
Timestamp:
Oct 25, 2006, 1:51:57 AM (17 years ago)
Author:
Bruno Cornec
Message:

merge -r890:902 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi-busybox/coreutils/test.c

    r821 r904  
    152152static char **t_wp;
    153153static struct t_op const *t_wp_op;
    154 static gid_t *group_array = NULL;
     154static gid_t *group_array;
    155155static int ngroups;
    156156
     
    548548{
    549549    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    }
    552554}
    553555
Note: See TracChangeset for help on using the changeset viewer.