NULL ptrs in dump_custom and dump_image

This commit is contained in:
Anders Hafreager
2016-11-07 15:56:47 +01:00
parent b221b15d24
commit f8226e8ae5
2 changed files with 11 additions and 7 deletions

View File

@ -49,9 +49,12 @@ enum{NO,YES};
/* ---------------------------------------------------------------------- */
DumpImage::DumpImage(LAMMPS *lmp, int narg, char **arg) :
DumpCustom(lmp, narg, arg), phistr(NULL), czstr(NULL), upzstr(NULL), perspstr(NULL),
bdiamtype(NULL), bcolortype(NULL), avec_line(NULL), avec_tri(NULL), avec_body(NULL),
fixptr(NULL), image(NULL), chooseghost(NULL), bufcopy(NULL)
DumpCustom(lmp, narg, arg), thetastr(NULL), phistr(NULL), cxstr(NULL),
cystr(NULL), czstr(NULL), upxstr(NULL), upystr(NULL), upzstr(NULL),
zoomstr(NULL), perspstr(NULL), diamtype(NULL), diamelement(NULL),
bdiamtype(NULL), colortype(NULL), colorelement(NULL), bcolortype(NULL),
avec_line(NULL), avec_tri(NULL), avec_body(NULL), fixptr(NULL), image(NULL),
chooseghost(NULL), bufcopy(NULL)
{
if (binary || multiproc) error->all(FLERR,"Invalid dump image filename");