[Mesa-dev] [PATCH] tgsi: Ensure struct tgsi_ind_register field Index is initialized.
Brian Paul
brianp at vmware.com
Mon Apr 8 07:22:09 PDT 2013
On 04/06/2013 10:33 PM, Vinson Lee wrote:
> Fixes uninitialized scalar variable defect reported by Coverity.
>
> Signed-off-by: Vinson Lee<vlee at freedesktop.org>
> ---
> 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 509bc5c..523430b 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;
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list