From 861ec4988d90b402abc30122fe1f97fbbf3afa89 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sun, 16 Oct 2022 11:36:38 -0700 Subject: [PATCH] r600/sfn: Initialize TestInstrFromString 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: e840645bb79 ("r600/sfn:explicitly initialize the memory pool") Suggested-by: Gert Wollny Signed-off-by: Vinson Lee Reviewed-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/tests/sfn_instrfromstring_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/sfn/tests/sfn_instrfromstring_test.cpp b/src/gallium/drivers/r600/sfn/tests/sfn_instrfromstring_test.cpp index 699f229..7b27dbb 100644 --- a/src/gallium/drivers/r600/sfn/tests/sfn_instrfromstring_test.cpp +++ b/src/gallium/drivers/r600/sfn/tests/sfn_instrfromstring_test.cpp @@ -34,7 +34,7 @@ protected: void SetUp() override; void TearDown() override; - InstrFactory *m_instr_factory; + InstrFactory *m_instr_factory{nullptr}; }; -- 2.7.4