Skip to content

Commit

Permalink
Give g_pMemAllocSingleton a default value (#563)
Browse files Browse the repository at this point in the history
Give default value as standard does not define value if uninitialised.
  • Loading branch information
Jan200101 authored Oct 4, 2023
1 parent 1d30b2d commit 5798c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NorthstarDLL/core/tier0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// use the Tier0 namespace for tier0 funcs
namespace Tier0
{
IMemAlloc* g_pMemAllocSingleton;
IMemAlloc* g_pMemAllocSingleton = nullptr;

ErrorType Error;
CommandLineType CommandLine;
Expand Down

0 comments on commit 5798c63

Please sign in to comment.