NULLing ptrs in comm_brick and dump*.cpp

This commit is contained in:
Anders Hafreager
2016-11-07 15:50:18 +01:00
parent 77bbf03f0f
commit b221b15d24
7 changed files with 22 additions and 7 deletions

View File

@ -26,7 +26,8 @@ using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
DumpXYZ::DumpXYZ(LAMMPS *lmp, int narg, char **arg) : Dump(lmp, narg, arg)
DumpXYZ::DumpXYZ(LAMMPS *lmp, int narg, char **arg) : Dump(lmp, narg, arg),
typenames(NULL)
{
if (narg != 5) error->all(FLERR,"Illegal dump xyz command");
if (binary || multiproc) error->all(FLERR,"Invalid dump xyz filename");