NULLed ptrs in files

This commit is contained in:
Anders Hafreager
2016-11-07 16:07:37 +01:00
parent f8226e8ae5
commit 45f2e86dd6
9 changed files with 30 additions and 15 deletions

View File

@ -28,7 +28,8 @@ using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
Region::Region(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)
Region::Region(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp),
id(NULL), style(NULL), contact(NULL), list(NULL), xstr(NULL), ystr(NULL), zstr(NULL), tstr(NULL)
{
int n = strlen(arg[0]) + 1;
id = new char[n];