glsl: Initialize ast_parameter_declarator member variables.
Fixes uninitialized pointer field defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
ff60509157
commit
d08cee5d80
|
@ -547,11 +547,15 @@ public:
|
|||
|
||||
class ast_parameter_declarator : public ast_node {
|
||||
public:
|
||||
ast_parameter_declarator()
|
||||
ast_parameter_declarator() :
|
||||
type(NULL),
|
||||
identifier(NULL),
|
||||
is_array(false),
|
||||
array_size(NULL),
|
||||
formal_parameter(false),
|
||||
is_void(false)
|
||||
{
|
||||
this->identifier = NULL;
|
||||
this->is_array = false;
|
||||
this->array_size = 0;
|
||||
/* empty */
|
||||
}
|
||||
|
||||
virtual void print(void) const;
|
||||
|
|
Loading…
Reference in New Issue