[Piglit] [PATCH] apple_vertex_array_object: Initialize variable apple.
Vinson Lee
vlee at freedesktop.org
Sat Dec 22 13:07:49 PST 2012
Fixes uninitialized scalar variable defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/spec/arb_vertex_array_object/isvertexarray.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/spec/arb_vertex_array_object/isvertexarray.c b/tests/spec/arb_vertex_array_object/isvertexarray.c
index 35e8862..9976ca0 100644
--- a/tests/spec/arb_vertex_array_object/isvertexarray.c
+++ b/tests/spec/arb_vertex_array_object/isvertexarray.c
@@ -73,6 +73,8 @@ piglit_init(int argc, char **argv)
if (argc == 2 && strcmp(argv[1], "apple") == 0) {
printf("apple\n");
apple = GL_TRUE;
+ } else {
+ apple = GL_FALSE;
}
piglit_require_gl_version(15);
--
1.8.0.1
More information about the Piglit
mailing list