- Minor code formatting change in merge

* 'misc_cleanup' of https://github.com/MaxKellermann/zeek:
  Desc: move realloc() call out of the loop
  SerializationFormat: move realloc() call out of the loop
  PacketDumper: remove unused types
This commit is contained in:
Jon Siwek 2020-01-31 11:16:56 -08:00
commit e2e90ac477
3 changed files with 4 additions and 24 deletions

View file

@ -376,10 +376,9 @@ void ODesc::AddBytesRaw(const void* bytes, unsigned int n)
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()