Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

RunContext: Uninit Member

Fix an uninitialized member in `RunContext`.

Found with coverity in a downstream project.
Commit
47602ac5569b77ad1781f8a257451b05fe180844
Author
Axel Huebl ·
Committer
Martin Hořeňovský
Parents
d1e7344f16d5

Files · Download .tar.gz

Changes

 include/internal/catch_run_context.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/internal/catch_run_context.h b/include/internal/catch_run_context.h
index 952ef147..259fecd3 100644
--- a/include/internal/catch_run_context.h
+++ b/include/internal/catch_run_context.h
@@ -128,7 +128,7 @@ namespace Catch {
         TestRunInfo m_runInfo;
         IMutableContext& m_context;
         TestCase const* m_activeTestCase = nullptr;
-        ITracker* m_testCaseTracker;
+        ITracker* m_testCaseTracker = nullptr;
         Option<AssertionResult> m_lastResult;
 
         IConfigPtr m_config;