From: Vinson Lee Date: Sun, 4 Aug 2013 07:13:53 +0000 (-0700) Subject: nvc0: Initialize ptr for unexpected sample_count on release builds. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60b567ee59b96b9fa334bf59d3d443c29c590c54;p=mesa.git nvc0: Initialize ptr for unexpected sample_count on release builds. Fixes "Uninitialized pointer read" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul --- diff --git a/src/gallium/drivers/nvc0/nvc0_context.c b/src/gallium/drivers/nvc0/nvc0_context.c index cd86040ab01..8cd5fc5a646 100644 --- a/src/gallium/drivers/nvc0/nvc0_context.c +++ b/src/gallium/drivers/nvc0/nvc0_context.c @@ -394,6 +394,7 @@ nvc0_context_get_sample_position(struct pipe_context *pipe, case 8: ptr = ms8; break; default: assert(0); + ptr = ms1; break; } xy[0] = ptr[sample_index][0] * 0.0625f;