[Piglit] [PATCH 3/3] shader_runner: fix a may-be-used-uninitialized warning

Marek Olšák maraeo at gmail.com
Mon Apr 11 10:47:36 UTC 2016


From: Marek Olšák <marek.olsak at amd.com>

---
 tests/shaders/shader_runner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 3d2ab9d..c41f9d2 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1476,7 +1476,7 @@ set_ubo_uniform(char *name, const char *type, const char *line, int ubo_array_in
 	GLuint uniform_index;
 	GLint block_index;
 	GLint offset;
-	GLint array_index;
+	GLint array_index = 0;
 	char *data;
 	float f[16];
 	double d[16];
-- 
2.5.0



More information about the Piglit mailing list