From be8d787873609e2efd847325e033d884f64f03ef Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 12 Jul 2013 17:16:47 -0700 Subject: glsl: Initialize ast_aggregate_initializer::constructor_type. Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Matt Turner --- src/glsl/ast.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ } -- cgit v1.2.3