diff options
author | Vinson Lee <vlee@freedesktop.org> | 2013-07-14 00:57:22 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2013-07-16 09:03:02 -0700 |
commit | fa7829c36b78b8ecc42238cbc0a02d1059320c77 (patch) | |
tree | 42a0a64c0ad58c767e4c50aad9adba1714475a7a /src/glsl | |
parent | f74acb98355b789b0e357522162e3a2f513d9785 (diff) | |
download | external_mesa3d-fa7829c36b78b8ecc42238cbc0a02d1059320c77.zip external_mesa3d-fa7829c36b78b8ecc42238cbc0a02d1059320c77.tar.gz external_mesa3d-fa7829c36b78b8ecc42238cbc0a02d1059320c77.tar.bz2 |
glsl: Initialize ast_jump_statement::opt_return_value.
opt_return_value was not initialized if mode != ast_return.
Fixes "Uninitialized pointer field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/glsl_parser_extras.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 055dfa9..84c4777 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -1225,6 +1225,7 @@ ast_jump_statement::print(void) const ast_jump_statement::ast_jump_statement(int mode, ast_expression *return_value) + : opt_return_value(NULL) { this->mode = ast_jump_modes(mode); |