mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
error propagation fix to avoid a crash
This commit is contained in:
parent
5389ad69f8
commit
abd75932a2
1 changed files with 2 additions and 1 deletions
|
@ -176,7 +176,8 @@ static void initialize_var(const IDPtr& id, InitClass c, ExprPtr init)
|
|||
else if ( c == INIT_REMOVE )
|
||||
assignment = make_intrusive<RemoveFromExpr>(lhs, init);
|
||||
else
|
||||
reporter->InternalError("bad InitClass in initialize_var");
|
||||
// This can happen due to error propagation.
|
||||
return;
|
||||
|
||||
if ( assignment->IsError() )
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue