mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
minor updates and fixes for script optimization maintenance
This commit is contained in:
parent
072fe660bc
commit
9e32443504
12 changed files with 66 additions and 12 deletions
|
@ -47,7 +47,7 @@ void CPP_InitsInfo::GenerateInitializers(CPPCompile* c) {
|
|||
if ( ++n > 1 )
|
||||
c->Emit("");
|
||||
|
||||
if ( cohort.size() == 1 )
|
||||
if ( cohort.size() == 1 && ! IsCompound() )
|
||||
BuildCohort(c, cohort);
|
||||
else {
|
||||
c->Emit("{");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue