[Piglit] [PATCH] arb_internalformat_query2: Set expected_value in default case.
Vinson Lee
vlee at freedesktop.org
Tue Mar 8 01:02:24 UTC 2016
Fixes uninitialized scalar defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/spec/arb_internalformat_query2/format-components.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/spec/arb_internalformat_query2/format-components.c b/tests/spec/arb_internalformat_query2/format-components.c
index 10d7f5258108..4e89a7b7b152 100644
--- a/tests/spec/arb_internalformat_query2/format-components.c
+++ b/tests/spec/arb_internalformat_query2/format-components.c
@@ -218,6 +218,7 @@ try(const GLenum *targets, unsigned num_targets,
break;
default:
assert("incorrect pname for test");
+ expected_value = 0;
break;
}
--
2.5.0
More information about the Piglit
mailing list