mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-14 14:09:35 +02:00
(new_control_record): Use x2nrealloc rather than xrealloc.
This commit is contained in:
+1
-4
@@ -985,10 +985,7 @@ new_control_record (void)
|
||||
struct control *p;
|
||||
|
||||
if (control_used == control_allocated)
|
||||
{
|
||||
control_allocated += ALLOC_SIZE;
|
||||
controls = xrealloc (controls, control_allocated * sizeof *controls);
|
||||
}
|
||||
controls = x2nrealloc (controls, &control_allocated, sizeof *controls);
|
||||
p = &controls[control_used++];
|
||||
p->regexpr = NULL;
|
||||
p->repeat = 0;
|
||||
|
||||
Reference in New Issue
Block a user