VirtualBox

Changeset 1318 in kBuild


Ignore:
Timestamp:
Dec 2, 2007 6:57:11 AM (17 years ago)
Author:
bird
Message:

no xmalloc in the kmk_test link.

File:
1 edited

Legend:

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

    r1316 r1318  
    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
    596599                groups = xmalloc((maxgroups + 1) * sizeof(gid_t));
     600# endif
    597601                n = getgroups(maxgroups, groups);
    598602                while (--n >= 0) {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette