projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
004e924
)
glsl2: Also initialize the identifier field of parameter_declarator.
author
Eric Anholt
<eric@anholt.net>
Mon, 2 Aug 2010 18:04:54 +0000
(11:04 -0700)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/src/glsl/ast.h
b/src/glsl/ast.h
index aa769da3f6579fb9bd35e6a13e44c0026d96282a..1de285bb46102f61e463cda9f54441078ba8b795 100644
(file)
--- 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;
}