diff options
author | Vinson Lee <[email protected]> | 2013-07-12 17:16:47 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-07-12 18:42:46 -0700 |
commit | be8d787873609e2efd847325e033d884f64f03ef (patch) | |
tree | e84c76d31626336565caf1c881697b833ea457f8 | |
parent | c6bfe62e2166e44f035df3d7788ac2f97609f3d2 (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]>
-rw-r--r-- | src/glsl/ast.h | 3 |
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 */ } |