mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +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
|
@ -2284,7 +2284,10 @@ ListVal* TableVal::ConvertToPureList() const
|
|||
{
|
||||
type_list* tl = table_type->Indices()->Types();
|
||||
if ( tl->length() != 1 )
|
||||
{
|
||||
InternalWarning("bad index type in TableVal::ConvertToPureList");
|
||||
return 0;
|
||||
}
|
||||
|
||||
return ConvertToList((*tl)[0]->Tag());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue