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:
Vinson Lee 2013-07-14 00:57:22 -07:00 committed by Chad Versace
parent f74acb9835
commit fa7829c36b

View file

@ -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);