projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f74acb9
)
glsl: Initialize ast_jump_statement::opt_return_value.
author
Vinson Lee
<vlee@freedesktop.org>
Sun, 14 Jul 2013 07:57:22 +0000
(
00:57
-0700)
committer
Chad Versace
<chad.versace@linux.intel.com>
Tue, 16 Jul 2013 16:03:02 +0000
(09:03 -0700)
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>
src/glsl/glsl_parser_extras.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/glsl_parser_extras.cpp
b/src/glsl/glsl_parser_extras.cpp
index 055dfa9937c0ddf02ee666079e32656fb98cf85b..84c477773ee8d0a739bac4bbb3bd59a2b0fd71e3 100644
(file)
--- 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);