mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
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>
This commit is contained in:
parent
f74acb9835
commit
fa7829c36b
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue