glsl2: Also initialize the identifier field of parameter_declarator.

The non-named parameter grammar understandably doesn't set the
identifier field.  Fixes intermittent failures about void main(void)
{} having a named void parameter.
This commit is contained in:
Eric Anholt
2010-08-02 11:04:54 -07:00
parent 004e924014
commit b8db38e1c4

View File

@@ -457,6 +457,7 @@ class ast_parameter_declarator : public ast_node {
public:
ast_parameter_declarator()
{
this->identifier = NULL;
this->is_array = false;
this->array_size = 0;
}