Set scratchpad pointer to null by default

This commit is contained in:
SChernykh 2019-09-23 15:56:14 +02:00
parent 2441730203
commit 9e7ae84de4

View File

@ -59,7 +59,7 @@ protected:
alignas(64) randomx::RegisterFile reg; alignas(64) randomx::RegisterFile reg;
alignas(16) randomx::ProgramConfiguration config; alignas(16) randomx::ProgramConfiguration config;
randomx::MemoryRegisters mem; randomx::MemoryRegisters mem;
uint8_t* scratchpad; uint8_t* scratchpad = nullptr;
union { union {
randomx_cache* cachePtr = nullptr; randomx_cache* cachePtr = nullptr;
randomx_dataset* datasetPtr; randomx_dataset* datasetPtr;