[Piglit] [PATCH] arb_texture_buffer_object-formats: Initialize variable.
Vinson Lee
vlee at freedesktop.org
Sat Jan 18 21:07:47 PST 2014
Fixes "Assigned value is garbage or undefined" bugs reported by Clang
Static Analyzer.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/spec/arb_texture_buffer_object/formats.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/spec/arb_texture_buffer_object/formats.c b/tests/spec/arb_texture_buffer_object/formats.c
index ed73cc1..ccd818d 100644
--- a/tests/spec/arb_texture_buffer_object/formats.c
+++ b/tests/spec/arb_texture_buffer_object/formats.c
@@ -186,7 +186,7 @@ transform_y(float y)
static bool
get_expected_f(const struct format *format, int sample, float *expected)
{
- float chans[4];
+ float chans[4] = { 0 };
int i;
for (i = 0; i < format->components; i++) {
--
1.8.3.2
More information about the Piglit
mailing list