avoid writing to null pointer
This commit is contained in:
Qunxin Liu 2021-04-07 17:15:32 -07:00 committed by Garret Rieger
parent 4af5dacedc
commit 553ffaf682
1 changed files with 1 additions and 0 deletions

View File

@ -347,6 +347,7 @@ struct AnchorFormat1
{
TRACE_SERIALIZE (this);
AnchorFormat1* out = c->embed<AnchorFormat1> (this);
if (!out) return_trace (out);
out->format = 1;
return_trace (out);
}