Fix rare UB / assertion failure in MdlibUnitTest
[alexxy/gromacs.git] / src / gromacs / mdlib / tests / leapfrogtestdata.cpp
index 9d1f7780be68a05a173877aad803ecd15881f374..3f66855450e8cdec66b8e57c54b1db109c8429ac 100644 (file)
@@ -170,6 +170,7 @@ LeapFrogTestData::LeapFrogTestData(int        numAtoms,
     mdAtoms_.haveVsites               = false;
     mdAtoms_.havePartiallyFrozenAtoms = false;
     mdAtoms_.cFREEZE                  = nullptr;
+    mdAtoms_.ptype                    = nullptr;
 
     update_ = std::make_unique<Update>(inputRecord_, nullptr);
     update_->updateAfterPartition(numAtoms,