From: Vinson Lee Date: Thu, 12 Apr 2012 06:05:44 +0000 (-0700) Subject: ir_to_mesa: Fix uninitialized member in add_uniform_to_shader. X-Git-Tag: 062012170305~885 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10ec14865aa7d0110ae202011be36d6e4a7ba154;p=profile%2Fivi%2Fmesa.git ir_to_mesa: Fix uninitialized member in add_uniform_to_shader. Fix uninitialized scalar field defect reported by Coverity. NOTE: This is a candidate for the 8.0 branch. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul --- diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 6f4a095..840648e 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -2358,7 +2358,7 @@ class add_uniform_to_shader : public uniform_field_visitor { public: add_uniform_to_shader(struct gl_shader_program *shader_program, struct gl_program_parameter_list *params) - : shader_program(shader_program), params(params) + : shader_program(shader_program), params(params), idx(-1) { /* empty */ }