summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast.h
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-07-12 17:16:47 -0700
committerVinson Lee <[email protected]>2013-07-12 18:42:46 -0700
commitbe8d787873609e2efd847325e033d884f64f03ef (patch)
treee84c76d31626336565caf1c881697b833ea457f8 /src/glsl/ast.h
parentc6bfe62e2166e44f035df3d7788ac2f97609f3d2 (diff)
glsl: Initialize ast_aggregate_initializer::constructor_type.
Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/ast.h')
-rw-r--r--src/glsl/ast.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index 9b119edbb2f..c0350e7358e 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -307,7 +307,8 @@ private:
class ast_aggregate_initializer : public ast_expression {
public:
ast_aggregate_initializer()
- : ast_expression(ast_aggregate, NULL, NULL, NULL)
+ : ast_expression(ast_aggregate, NULL, NULL, NULL),
+ constructor_type(NULL)
{
/* empty */
}