Changeset 1594 for trunk/src/kmk


Ignore:
Timestamp:
May 1, 2008, 11:36:59 PM (17 years ago)
Author:
bird
Message:

xmalloc should work fine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/test.c

    r1455 r1594  
    594594                if ((maxgroups = getgroups(0, NULL)) <= 0)
    595595                        maxgroups = NGROUPS_MAX;        /* pre-POSIX system? */
    596 # ifdef kmk_builtin_test
    597                 groups = malloc((maxgroups + 1) * sizeof(gid_t));
    598 # else
    599596                groups = xmalloc((maxgroups + 1) * sizeof(gid_t));
    600 # endif
    601597                n = getgroups(maxgroups, groups);
    602598                while (--n >= 0) {
Note: See TracChangeset for help on using the changeset viewer.