diff options
author | Vinson Lee <vlee@freedesktop.org> | 2013-07-12 17:16:47 -0700 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2013-07-12 18:42:46 -0700 |
commit | be8d787873609e2efd847325e033d884f64f03ef (patch) | |
tree | e84c76d31626336565caf1c881697b833ea457f8 /src/glsl | |
parent | c6bfe62e2166e44f035df3d7788ac2f97609f3d2 (diff) | |
download | external_mesa3d-be8d787873609e2efd847325e033d884f64f03ef.zip external_mesa3d-be8d787873609e2efd847325e033d884f64f03ef.tar.gz external_mesa3d-be8d787873609e2efd847325e033d884f64f03ef.tar.bz2 |
glsl: Initialize ast_aggregate_initializer::constructor_type.
Fixes "Uninitialized pointer field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/glsl')
-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 9b119ed..c0350e7 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 */ } |