X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=test.c;h=acd6947d98de1160d15ff2c6ecd71f0453076b72;hb=e2e2c29ea13213974a4014fa726f1a506cc6705f;hp=6dde718c76eb9cbd31129a88d570618dddba3ba6;hpb=88f50b6bf5e79ca9d5f30e5899ace1cbda0950a4;p=oweals%2Fbusybox.git diff --git a/test.c b/test.c index 6dde718c7..acd6947d9 100644 --- a/test.c +++ b/test.c @@ -31,7 +31,7 @@ * "This program is in the Public Domain." */ -#include "internal.h" +#include "busybox.h" #include #include #include @@ -555,9 +555,7 @@ static void initialize_group_array () { ngroups = getgroups(0, NULL); - if ((group_array = realloc(group_array, ngroups * sizeof(gid_t))) == NULL) - fatalError("Out of space\n"); - + group_array = xrealloc(group_array, ngroups * sizeof(gid_t)); getgroups(ngroups, group_array); }