Fix uninitialized (or unused) fields.

This commit is contained in:
Jon Siwek 2013-09-27 10:13:52 -05:00
parent 64f3bef96d
commit 775ec6795e
62 changed files with 135 additions and 98 deletions

View file

@ -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;
};