aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test.c b/test.c
index 6dde718c7..a2bec4492 100644
--- a/test.c
+++ b/test.c
@@ -555,9 +555,7 @@ static void
555initialize_group_array () 555initialize_group_array ()
556{ 556{
557 ngroups = getgroups(0, NULL); 557 ngroups = getgroups(0, NULL);
558 if ((group_array = realloc(group_array, ngroups * sizeof(gid_t))) == NULL) 558 group_array = xrealloc(group_array, ngroups * sizeof(gid_t));
559 fatalError("Out of space\n");
560
561 getgroups(ngroups, group_array); 559 getgroups(ngroups, group_array);
562} 560}
563 561