mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(new_control_record): Use x2nrealloc rather than xrealloc.
This commit is contained in:
1 parent
c34f3b9959
commit
986b0ecbdf
1 file changed
+1
-4
+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