mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Allow duplicate attributes in full redefs
This commit is contained in:
parent
9b2f26c0aa
commit
9106f3f722
5 changed files with 18 additions and 15 deletions
|
@ -213,7 +213,7 @@ static void make_var(const zeek::detail::IDPtr& id, zeek::TypePtr t,
|
|||
id->SetType(t);
|
||||
|
||||
if ( attr )
|
||||
id->AddAttrs(zeek::make_intrusive<zeek::detail::Attributes>(std::move(*attr), t, false, id->IsGlobal()));
|
||||
id->AddAttrs(zeek::make_intrusive<zeek::detail::Attributes>(std::move(*attr), t, false, id->IsGlobal()), dt == VAR_REDEF);
|
||||
|
||||
if ( init )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue