mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Fixing bug with records sometimes unnecessarily coerced on assignment.
This commit is contained in:
parent
1cbde793d8
commit
58f86ae55d
4 changed files with 16 additions and 3 deletions
|
@ -1504,8 +1504,8 @@ int same_attrs(const Attributes* a1, const Attributes* a2)
|
|||
if ( ! a1 )
|
||||
return (a2 == 0);
|
||||
|
||||
if ( a2 )
|
||||
return 0;
|
||||
if ( ! a2 )
|
||||
return (a1 == 0);
|
||||
|
||||
return (*a1 == *a2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue