diff options
author | Vinson Lee <[email protected]> | 2013-07-14 00:57:22 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2013-07-16 09:03:02 -0700 |
commit | fa7829c36b78b8ecc42238cbc0a02d1059320c77 (patch) | |
tree | 42a0a64c0ad58c767e4c50aad9adba1714475a7a /src/glsl/glsl_parser_extras.cpp | |
parent | f74acb98355b789b0e357522162e3a2f513d9785 (diff) |
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 <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-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 055dfa9937c..84c477773ee 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); |