fix for an ancient bug - surprising that this hasn't caused problems previously

This commit is contained in:
Vern Paxson 2021-02-02 16:59:21 -08:00
parent aa03e54ba0
commit be54599896

View file

@ -422,7 +422,9 @@ void ExprStmt::StmtDescribe(ODesc* d) const
if ( d->IsReadable() && Tag() == STMT_IF ) if ( d->IsReadable() && Tag() == STMT_IF )
d->Add("("); d->Add("(");
e->Describe(d);
if ( e )
e->Describe(d);
if ( Tag() == STMT_IF || Tag() == STMT_SWITCH ) if ( Tag() == STMT_IF || Tag() == STMT_SWITCH )
{ {