[Piglit] [PATCH] getteximage-formats: Ensure pass is initialized.

Vinson Lee vlee at freedesktop.org
Tue Dec 11 22:51:44 PST 2012


Fixes uninitialized scalar variable defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/texturing/getteximage-formats.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/texturing/getteximage-formats.c b/tests/texturing/getteximage-formats.c
index 0e12338..0aec3ae 100644
--- a/tests/texturing/getteximage-formats.c
+++ b/tests/texturing/getteximage-formats.c
@@ -472,6 +472,7 @@ piglit_display(void)
 			pass = test_format(set, &set->format[format_index]);
 		}
 		else {
+			pass = GL_FALSE;
 			glClear(GL_COLOR_BUFFER_BIT);
 			piglit_present_results();
 		}
-- 
1.8.0.1



More information about the Piglit mailing list