Fixes segfault due to uninitialized pointers

This commit is contained in:
Richard Berger
2020-08-26 18:41:32 -04:00
parent d00807ee9a
commit dbf51af7d1

View File

@ -43,7 +43,17 @@ PairBuckCoulLong::PairBuckCoulLong(LAMMPS *lmp) : Pair(lmp)
{
ewaldflag = pppmflag = 1;
writedata = 1;
ftable = NULL;
ftable = nullptr;
cut_lj = nullptr;
cut_ljsq = nullptr;
a = nullptr;
rho = nullptr;
c = nullptr;
rhoinv = nullptr;
buck1 = nullptr;
buck2 = nullptr;
offset = nullptr;
cut_respa = nullptr;
}
/* ---------------------------------------------------------------------- */