mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Fix uninitialized (or unused) fields.
This commit is contained in:
parent
64f3bef96d
commit
775ec6795e
62 changed files with 135 additions and 98 deletions
|
@ -331,12 +331,10 @@ protected:
|
|||
BinaryExpr() { op1 = op2 = 0; }
|
||||
|
||||
BinaryExpr(BroExprTag arg_tag, Expr* arg_op1, Expr* arg_op2)
|
||||
: Expr(arg_tag)
|
||||
: Expr(arg_tag), op1(arg_op1), op2(arg_op2)
|
||||
{
|
||||
if ( ! (arg_op1 && arg_op2) )
|
||||
return;
|
||||
op1 = arg_op1;
|
||||
op2 = arg_op2;
|
||||
if ( op1->IsError() || op2->IsError() )
|
||||
SetError();
|
||||
}
|
||||
|
@ -749,7 +747,6 @@ protected:
|
|||
|
||||
DECLARE_SERIAL(HasFieldExpr);
|
||||
|
||||
bool is_attr;
|
||||
const char* field_name;
|
||||
int field;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue