From 04ffce3004faa50f33a740ea36aa4abdc03f652f Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 5 Apr 2013 20:46:30 -0700 Subject: [PATCH] tgsi: Ensure struct tgsi_ind_register field Index is initialized. Fixes uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul --- src/gallium/auxiliary/tgsi/tgsi_build.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2