mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Initialize RecordVal default fields when redef'd
If a RecordVal had been created, but later its RecordType redef'd to contain fields with &default, those fields were incorrectly left uninitialized.
This commit is contained in:
parent
71b82595ba
commit
7a397d2746
3 changed files with 8 additions and 7 deletions
|
@ -2762,7 +2762,7 @@ void RecordVal::ResizeParseTimeRecords(RecordType* rt)
|
|||
vs->resize(required_length);
|
||||
|
||||
for ( auto i = current_length; i < required_length; ++i )
|
||||
vs->replace(i, nullptr);
|
||||
vs->replace(i, rt->FieldDefault(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue