mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 18:50:10 +01:00
tgsi: Ensure struct tgsi_ind_register field Index is initialized.
Fixes uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
a8246927e3
commit
04ffce3004
1 changed files with 1 additions and 0 deletions
|
|
@ -835,6 +835,7 @@ tgsi_default_ind_register( void )
|
|||
struct tgsi_ind_register ind_register;
|
||||
|
||||
ind_register.File = TGSI_FILE_NULL;
|
||||
ind_register.Index = 0;
|
||||
ind_register.Swizzle = TGSI_SWIZZLE_X;
|
||||
ind_register.ArrayID = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue