diff options
author | Vinson Lee <[email protected]> | 2012-04-11 23:05:44 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2012-04-12 22:43:23 -0700 |
commit | 10ec14865aa7d0110ae202011be36d6e4a7ba154 (patch) | |
tree | 3f90d915b6a082773baf6ff5713e0c835a526178 /src | |
parent | 4f2eafe4dcea26d7275b121360c4f4e0b28455f5 (diff) |
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 <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 6f4a095dd0a..840648e0449 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 */ } |