1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-06 23:52:38 -05:00

Set scratchpad pointer to null by default

To avoid freeing random blocks of memory in some cases.
This commit is contained in:
SChernykh
2019-09-24 08:53:00 +02:00
parent c6096c3c34
commit 1bba25e080

View File

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