[Piglit] [PATCH] glx-query-drawable: Initialize variable.
Vinson Lee
vlee at freedesktop.org
Fri Jan 9 18:31:41 PST 2015
Fix uninitialized scalar variable defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/glx/glx-query-drawable.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/glx/glx-query-drawable.c b/tests/glx/glx-query-drawable.c
index 588b4f5..cd58ae6 100644
--- a/tests/glx/glx-query-drawable.c
+++ b/tests/glx/glx-query-drawable.c
@@ -315,6 +315,9 @@ int main(int argc, char **argv) {
case WINDOW:
draw = piglit_get_glx_window(display, visual);
break;
+ default:
+ assert(0);
+ draw = 0;
}
glXMakeCurrent(display, draw, ctx);
--
2.1.0
More information about the Piglit
mailing list