1
0
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:
Jim Meyering
2004-01-04 21:08:47 +00:00
parent c34f3b9959
commit 986b0ecbdf
+1 -4
View File
@@ -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;