Browse Source

Set scratchpad pointer to null by default

SChernykh 7 years ago
parent
commit
9e7ae84de4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/virtual_machine.hpp

+ 1 - 1
src/virtual_machine.hpp

@@ -59,7 +59,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;