avoid segfaults due to uninitialized data

This commit is contained in:
Axel Kohlmeyer
2021-09-01 21:47:39 -04:00
parent 495f424a67
commit c186b24292
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ static const char cite_neb_spin[] =
/* ---------------------------------------------------------------------- */
NEBSpin::NEBSpin(LAMMPS *lmp) : Command(lmp) {
NEBSpin::NEBSpin(LAMMPS *lmp) : Command(lmp), fp(nullptr) {
if (lmp->citeme) lmp->citeme->add(cite_neb_spin);
}