mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Fix some recent Coverity findings
This commit is contained in:
parent
8b4707a284
commit
66f9695927
4 changed files with 4 additions and 4 deletions
|
@ -574,7 +574,7 @@ void ScriptFunc::ReplaceBody(const StmtPtr& old_body, StmtPtr new_body) {
|
|||
if ( new_body )
|
||||
body->stmts = new_body;
|
||||
else
|
||||
bodies.erase(body);
|
||||
body = bodies.erase(body);
|
||||
|
||||
found_it = true;
|
||||
current_body = *body;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue