mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Check for valid identifier in WhenStmt::Describe
This commit is contained in:
parent
da7457340c
commit
9abf8ea8b7
3 changed files with 23 additions and 1 deletions
|
@ -2029,7 +2029,10 @@ void WhenStmt::StmtDescribe(ODesc* d) const {
|
|||
if ( c.IsDeepCopy() )
|
||||
d->Add("copy ");
|
||||
|
||||
d->Add(c.Id()->Name());
|
||||
if ( c.Id() )
|
||||
d->Add(c.Id()->Name());
|
||||
else
|
||||
d->Add("<error>");
|
||||
}
|
||||
d->Add("]");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue