ir_constant_expression: Initialize op[0] and op[1] to NULL.

This makes it easy to check if there is a second argument.
This commit is contained in:
Kenneth Graunke
2010-07-02 17:12:23 -07:00
committed by Ian Romanick
parent c63a1db81f
commit 6bc432e14e

View File

@@ -129,7 +129,7 @@ void
ir_constant_visitor::visit(ir_expression *ir)
{
value = NULL;
ir_constant *op[2];
ir_constant *op[2] = { NULL, NULL };
unsigned int operand, c;
ir_constant_data data;