From cccf72a21d6a025dd984e214ffe89c03abec8ad4 Mon Sep 17 00:00:00 2001
From: Axel Kohlmeyer <akohlmey@gmail.com>
Date: Tue, 20 Jun 2017 16:09:11 -0400
Subject: [PATCH] make certain class member list is initialized to NULL before
 assigned to a neighbor list

---
 src/USER-MISC/compute_cnp_atom.cpp | 2 +-
 src/compute_cna_atom.cpp           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/USER-MISC/compute_cnp_atom.cpp b/src/USER-MISC/compute_cnp_atom.cpp
index 89568c6731..f479486b79 100644
--- a/src/USER-MISC/compute_cnp_atom.cpp
+++ b/src/USER-MISC/compute_cnp_atom.cpp
@@ -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");
 
diff --git a/src/compute_cna_atom.cpp b/src/compute_cna_atom.cpp
index 9680921e5f..bd24e06cae 100644
--- a/src/compute_cna_atom.cpp
+++ b/src/compute_cna_atom.cpp
@@ -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");
 
-- 
GitLab