summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast.h
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-02-01 23:27:34 -0800
committerVinson Lee <[email protected]>2013-02-05 22:11:32 -0800
commitd08cee5d80f394d8391c09f8506b2ee97125dcc1 (patch)
tree6101810f1199adb3c8c85d925c9117d5dfb39a7a /src/glsl/ast.h
parentff605091579a0dfbb6a6b3ea0e46d6fed28a278b (diff)
glsl: Initialize ast_parameter_declarator member variables.
Fixes uninitialized pointer field defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/glsl/ast.h')
-rw-r--r--src/glsl/ast.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index 1a28963c437..fcc6b4566ce 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -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;