From 5798c6369c9c093ddd170397177ea75f674a7b4c Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 4 Oct 2023 13:56:48 +0200 Subject: Give `g_pMemAllocSingleton` a default value (#563) Give default value as standard does not define value if uninitialised. --- NorthstarDLL/core/tier0.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NorthstarDLL') diff --git a/NorthstarDLL/core/tier0.cpp b/NorthstarDLL/core/tier0.cpp index 3b9996a1..16709384 100644 --- a/NorthstarDLL/core/tier0.cpp +++ b/NorthstarDLL/core/tier0.cpp @@ -3,7 +3,7 @@ // use the Tier0 namespace for tier0 funcs namespace Tier0 { - IMemAlloc* g_pMemAllocSingleton; + IMemAlloc* g_pMemAllocSingleton = nullptr; ErrorType Error; CommandLineType CommandLine; -- cgit v1.2.3