From c18efdbfa70f42390a3d535ccb1b8a423260f63a Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 2 May 2020 06:29:12 -0400 Subject: [PATCH] initialize pointers in order of definition --- src/fix_restrain.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fix_restrain.cpp b/src/fix_restrain.cpp index f1032c1bc1..2214cbe80c 100644 --- a/src/fix_restrain.cpp +++ b/src/fix_restrain.cpp @@ -44,8 +44,9 @@ enum{BOND,LBOUND,ANGLE,DIHEDRAL}; FixRestrain::FixRestrain(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg), - rstyle(NULL), mult(NULL), ids(NULL), kstart(NULL), kstop(NULL), target(NULL), - deqstart(NULL), deqstop(NULL), cos_target(NULL), sin_target(NULL) + rstyle(NULL), mult(NULL), ids(NULL), kstart(NULL), kstop(NULL), + deqstart(NULL), deqstop(NULL), target(NULL), cos_target(NULL), + sin_target(NULL) { if (narg < 4) error->all(FLERR,"Illegal fix restrain command");