mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Desc: move realloc() call out of the loop
This commit is contained in:
parent
61c3be8e16
commit
662c3aab58
1 changed files with 1 additions and 1 deletions
|
@ -378,8 +378,8 @@ void ODesc::Grow(unsigned int n)
|
||||||
while ( offset + n + SLOP >= size )
|
while ( offset + n + SLOP >= size )
|
||||||
{
|
{
|
||||||
size *= 2;
|
size *= 2;
|
||||||
base = safe_realloc(base, size);
|
|
||||||
}
|
}
|
||||||
|
base = safe_realloc(base, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ODesc::Clear()
|
void ODesc::Clear()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue