Desc: move realloc() call out of the loop

This commit is contained in:
Max Kellermann 2020-01-27 08:56:47 +01:00
parent 61c3be8e16
commit 662c3aab58

View file

@ -378,8 +378,8 @@ void ODesc::Grow(unsigned int n)
while ( offset + n + SLOP >= size )
{
size *= 2;
base = safe_realloc(base, size);
}
base = safe_realloc(base, size);
}
void ODesc::Clear()