glsl2: Also initialize the identifier field of parameter_declarator.
authorEric Anholt <eric@anholt.net>
Mon, 2 Aug 2010 18:04:54 +0000 (11:04 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 2 Aug 2010 18:04:54 +0000 (11:04 -0700)
The non-named parameter grammar understandably doesn't set the
identifier field.  Fixes intermittent failures about void main(void)
{} having a named void parameter.

src/glsl/ast.h

index aa769da3f6579fb9bd35e6a13e44c0026d96282a..1de285bb46102f61e463cda9f54441078ba8b795 100644 (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;
    }