From 6b3af02a6fe87152920d8b32434ea7bed4fb1fa5 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sun, 17 Jul 2022 14:39:00 -0700 Subject: [PATCH] r600/sfn: Initialize TestShaderFromString member m_instr_factory. Fix defect reported by Coverity Scan. Uninitialized pointer field (UNINIT_CTOR) uninit_member: Non-static class member m_instr_factory is not initialized in this constructor nor in any functions that it calls. Fixes: 79ca456b483 ("r600/sfn: rewrite NIR backend") Signed-off-by: Vinson Lee Reviewed-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/tests/sfn_shaderfromstring_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/sfn/tests/sfn_shaderfromstring_test.cpp b/src/gallium/drivers/r600/sfn/tests/sfn_shaderfromstring_test.cpp index 8ecbd3c..39af43a 100644 --- a/src/gallium/drivers/r600/sfn/tests/sfn_shaderfromstring_test.cpp +++ b/src/gallium/drivers/r600/sfn/tests/sfn_shaderfromstring_test.cpp @@ -33,7 +33,7 @@ public: protected: void check(const vector& eval, const std::vector>& expect); private: - InstrFactory *m_instr_factory; + InstrFactory *m_instr_factory = nullptr; }; -- 2.7.4