From: Vinson Lee Date: Sat, 13 Jul 2013 00:16:47 +0000 (-0700) Subject: glsl: Initialize ast_aggregate_initializer::constructor_type. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be8d787873609e2efd847325e033d884f64f03ef;p=mesa.git glsl: Initialize ast_aggregate_initializer::constructor_type. Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Matt Turner --- 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 */ }