From 0bc36ef50e45baf2255db98ced72986dd0176eca Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 7 Sep 2020 16:44:07 -0700 Subject: [PATCH] spirv: Initialize spirv_test member shader. Fix defect reported by Coverity Scan. Uninitialized pointer field (UNINIT_CTOR) uninit_member: Non-static class member shader is not initialized in this constructor nor in any functions that it calls Signed-off-by: Vinson Lee Reviewed-by: Jason Ekstrand Part-of: --- src/compiler/spirv/tests/helpers.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/spirv/tests/helpers.h b/src/compiler/spirv/tests/helpers.h index 6093319..e127df1 100644 --- a/src/compiler/spirv/tests/helpers.h +++ b/src/compiler/spirv/tests/helpers.h @@ -30,6 +30,7 @@ class spirv_test : public ::testing::Test { protected: spirv_test() + : shader(NULL) { glsl_type_singleton_init_or_ref(); } -- 2.7.4