mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
A couple null ptr checks.
This commit is contained in:
parent
daf5d0d098
commit
3c37e818ce
2 changed files with 23 additions and 5 deletions
|
@ -721,7 +721,7 @@ static char* get_prompt(bool reset_counter = false)
|
|||
string get_context_description(const Stmt* stmt, const Frame* frame)
|
||||
{
|
||||
ODesc d;
|
||||
const BroFunc* func = frame->GetFunction();
|
||||
const BroFunc* func = frame ? frame->GetFunction() : 0;
|
||||
|
||||
if ( func )
|
||||
func->DescribeDebug(&d, frame->GetFuncArgs());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue