mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
fix for adding a non-managed type to an empty vector
This commit is contained in:
parent
2accf6dfbf
commit
57f6487111
1 changed files with 3 additions and 0 deletions
|
@ -3236,9 +3236,12 @@ bool VectorVal::CheckElementType(const ValPtr& element)
|
|||
int n = vector_val->size();
|
||||
|
||||
if ( n == 0 )
|
||||
{
|
||||
// First addition to an empty vector-of-any, perhaps
|
||||
// it will be homogeneous.
|
||||
yield_type = element->GetType();
|
||||
managed_yield = ZVal::IsManagedType(yield_type);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue