diff --git a/src/fix_wall.cpp b/src/fix_wall.cpp
index 83d34c30697e25d4687a183d785c2157c98c9d65..503b87f4a7e5b5e8621c7d51b47fbd4cc909221a 100644
--- a/src/fix_wall.cpp
+++ b/src/fix_wall.cpp
@@ -35,7 +35,8 @@ enum{NONE=0,EDGE,CONSTANT,VARIABLE};
 /* ---------------------------------------------------------------------- */
 
 FixWall::FixWall(LAMMPS *lmp, int narg, char **arg) :
-  Fix(lmp, narg, arg)
+  Fix(lmp, narg, arg),
+  nwall(0)
 {
   scalar_flag = 1;
   vector_flag = 1;
@@ -47,7 +48,6 @@ FixWall::FixWall(LAMMPS *lmp, int narg, char **arg) :
 
   // parse args
 
-  nwall = 0;
   int scaleflag = 1;
   fldflag = 0;
   int pbcflag = 0;
diff --git a/src/fix_wall_reflect.cpp b/src/fix_wall_reflect.cpp
index b5c70037b2f67dbe5fa7b267a00ce044941c579c..dba7cf70360b9312c539da3ba3cd661a38340cf7 100644
--- a/src/fix_wall_reflect.cpp
+++ b/src/fix_wall_reflect.cpp
@@ -34,7 +34,8 @@ enum{NONE=0,EDGE,CONSTANT,VARIABLE};
 /* ---------------------------------------------------------------------- */
 
 FixWallReflect::FixWallReflect(LAMMPS *lmp, int narg, char **arg) :
-  Fix(lmp, narg, arg)
+  Fix(lmp, narg, arg),
+  nwall(0)
 {
   if (narg < 4) error->all(FLERR,"Illegal fix wall/reflect command");
 
diff --git a/src/fix_wall_region.cpp b/src/fix_wall_region.cpp
index 824f92eb89e66825cd7f40f5289d95bde76cbc2b..f543c12171b3a3f4353795883b1a6ebad527f5f5 100644
--- a/src/fix_wall_region.cpp
+++ b/src/fix_wall_region.cpp
@@ -34,7 +34,8 @@ enum{LJ93,LJ126,COLLOID,HARMONIC};
 /* ---------------------------------------------------------------------- */
 
 FixWallRegion::FixWallRegion(LAMMPS *lmp, int narg, char **arg) :
-  Fix(lmp, narg, arg)
+  Fix(lmp, narg, arg),
+  idregion(NULL)
 {
   if (narg != 8) error->all(FLERR,"Illegal fix wall/region command");