mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
use HasField() rather than GetField() where appropriate
This commit is contained in:
parent
13e7ba3a00
commit
3f6f8e0709
3 changed files with 5 additions and 5 deletions
|
@ -3009,7 +3009,7 @@ RecordValPtr RecordVal::CoerceTo(RecordTypePtr t,
|
|||
}
|
||||
|
||||
for ( i = 0; i < ar_t->NumFields(); ++i )
|
||||
if ( ! aggr->GetField(i) &&
|
||||
if ( ! aggr->HasField(i) &&
|
||||
! ar_t->FieldDecl(i)->GetAttr(detail::ATTR_OPTIONAL) )
|
||||
{
|
||||
char buf[512];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue