Properly set to zero stuff returned by 'new'
[stockfish] / src / pawns.cpp
index 07decab1fd4c52e9c490f5468c5f4c94d9d73b31..9a0059dcec379e7e64a3e20ad43525601aaa8f4d 100644 (file)
@@ -90,6 +90,7 @@ PawnInfoTable::PawnInfoTable() {
                 << " bytes for pawn hash table." << std::endl;
       Application::exit_with_failure();
   }
+  memset(entries, 0, PawnTableSize * sizeof(PawnInfo));
 }