mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Fix crash on exit (addresses #607).
MutableVal's destructor now checks if the global scope still exists before trying to remove an identifier from it.
This commit is contained in:
parent
2d85ab9818
commit
a267c30fcd
2 changed files with 5 additions and 3 deletions
|
@ -219,5 +219,5 @@ Scope* current_scope()
|
|||
|
||||
Scope* global_scope()
|
||||
{
|
||||
return scopes[0];
|
||||
return scopes.length() == 0 ? 0 : scopes[0];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue