summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-04-05 20:46:30 -0700
committerVinson Lee <[email protected]>2013-04-08 18:59:34 -0700
commit04ffce3004faa50f33a740ea36aa4abdc03f652f (patch)
treee1662f17b9239abddeb378e8c27405725c4c659c /src/gallium
parenta8246927e35a49097f70cffb7fa8dd05ec1365e1 (diff)
tgsi: Ensure struct tgsi_ind_register field Index is initialized.
Fixes uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_build.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_build.c b/src/gallium/auxiliary/tgsi/tgsi_build.c
index 509bc5c1241..523430b3ca7 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_build.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_build.c
@@ -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;