summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-02 11:04:54 -0700
committerEric Anholt <[email protected]>2010-08-02 11:04:54 -0700
commitb8db38e1c4f639cb0a063250d43f5a0ef6afd50f (patch)
treee191e4523497f88cf284a7f4081b7cedd6638d0c
parent004e924014f749e8ae5cc7a40e1bb431af0b9041 (diff)
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.
-rw-r--r--src/glsl/ast.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index aa769da3f65..1de285bb461 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -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;
}