Unverified Commit 992b981c authored by Richard Berger's avatar Richard Berger Committed by Axel Kohlmeyer
Browse files

Fixes segfault due to uninitialized pointers

parent b1cca2cf
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -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;
}

/* ---------------------------------------------------------------------- */