mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Making valgrind a bit more happy, and adding code that may or may not
help with #490 and #491.
This commit is contained in:
parent
1d20d2a985
commit
5113b100d9
5 changed files with 13 additions and 2 deletions
|
@ -1039,6 +1039,11 @@ LogVal* LogMgr::ValToLogVal(Val* val, BroType* ty)
|
|||
case TYPE_TABLE:
|
||||
{
|
||||
ListVal* set = val->AsTableVal()->ConvertToPureList();
|
||||
if ( ! set )
|
||||
// ConvertToPureList has reported an internal warning
|
||||
// already. Just keep going by making something up.
|
||||
set = new ListVal(TYPE_INT);
|
||||
|
||||
lval->val.set_val.size = set->Length();
|
||||
lval->val.set_val.vals = new LogVal* [lval->val.set_val.size];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue