mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
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 <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
4f2eafe4dc
commit
10ec14865a
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue