mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Add a few extra null checks, plus a missing initialization that led to a bad null check
This commit is contained in:
parent
2e5db823ef
commit
d22810e476
3 changed files with 7 additions and 4 deletions
|
@ -490,6 +490,9 @@ void ID::DescribeReST(ODesc* d, bool roles_only) const {
|
|||
ModuleName() != "Version" ) {
|
||||
d->Add(":Default:");
|
||||
auto ii = zeekygen_mgr->GetIdentifierInfo(Name());
|
||||
if ( ! ii )
|
||||
return;
|
||||
|
||||
auto redefs = ii->GetRedefs();
|
||||
const auto& iv = ! redefs.empty() && ii->InitialVal() ? ii->InitialVal() : val;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue