Skip to content
Snippets Groups Projects
Commit cccf72a2 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

make certain class member list is initialized to NULL before assigned to a neighbor list

parent 87c028ed
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ enum{NCOMMON};
ComputeCNPAtom::ComputeCNPAtom(LAMMPS *lmp, int narg, char **arg) :
Compute(lmp, narg, arg),
nearest(NULL), nnearest(NULL), cnpv(NULL)
list(NULL), nearest(NULL), nnearest(NULL), cnpv(NULL)
{
if (narg != 4) error->all(FLERR,"Illegal compute cnp/atom command");
......
......@@ -43,7 +43,7 @@ enum{NCOMMON,NBOND,MAXBOND,MINBOND};
ComputeCNAAtom::ComputeCNAAtom(LAMMPS *lmp, int narg, char **arg) :
Compute(lmp, narg, arg),
nearest(NULL), nnearest(NULL), pattern(NULL)
list(NULL), nearest(NULL), nnearest(NULL), pattern(NULL)
{
if (narg != 4) error->all(FLERR,"Illegal compute cna/atom command");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment