mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Fix some Coverity warnings.
This commit is contained in:
parent
a273143e7d
commit
3adad5e19a
7 changed files with 27 additions and 8 deletions
|
@ -2278,7 +2278,7 @@ double TableVal::GetExpireTime()
|
|||
Unref(timeout);
|
||||
|
||||
if ( interval >= 0 )
|
||||
return timeout->AsInterval();
|
||||
return interval;
|
||||
|
||||
expire_time = 0;
|
||||
|
||||
|
@ -2327,6 +2327,7 @@ double TableVal::CallExpireFunc(Val* idx)
|
|||
if ( vf->Type()->Tag() != TYPE_FUNC )
|
||||
{
|
||||
Unref(vf);
|
||||
delete_vals(vl);
|
||||
vf->Error("not a function");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue