mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
addressed static analysis concern about possible null pointer
This commit is contained in:
parent
2f9272f2d5
commit
b5603fe5bf
1 changed files with 1 additions and 0 deletions
|
@ -329,6 +329,7 @@ AttrInfo::AttrInfo(CPPCompile* _c, const AttrPtr& attr) : CompoundItemInfo(_c)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ASSERT(a_e->Tag() == EXPR_RECORD_COERCE);
|
ASSERT(a_e->Tag() == EXPR_RECORD_COERCE);
|
||||||
|
ASSERT(gi);
|
||||||
vals.emplace_back(Fmt(static_cast<int>(AE_RECORD)));
|
vals.emplace_back(Fmt(static_cast<int>(AE_RECORD)));
|
||||||
vals.emplace_back(Fmt(gi->Offset()));
|
vals.emplace_back(Fmt(gi->Offset()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue