mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Fix bug in selective cloning.
This commit is contained in:
commit
1692be4c2d
83 changed files with 1461 additions and 1328 deletions
|
@ -164,11 +164,8 @@ static type_decl_list* copy_type_decl_list(type_decl_list* tdl)
|
|||
|
||||
type_decl_list* rval = new type_decl_list();
|
||||
|
||||
loop_over_list(*tdl, i)
|
||||
{
|
||||
TypeDecl* td = (*tdl)[i];
|
||||
for ( const auto& td : *tdl )
|
||||
rval->append(new TypeDecl(*td));
|
||||
}
|
||||
|
||||
return rval;
|
||||
}
|
||||
|
@ -180,9 +177,8 @@ static attr_list* copy_attr_list(attr_list* al)
|
|||
|
||||
attr_list* rval = new attr_list();
|
||||
|
||||
loop_over_list(*al, i)
|
||||
for ( const auto& a : *al )
|
||||
{
|
||||
Attr* a = (*al)[i];
|
||||
::Ref(a);
|
||||
rval->append(a);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue