Unverified Commit fd93c27d authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

make valgrind happy by fully initializing line buffer for thermo output

parent daa53e30
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -113,9 +113,11 @@ Thermo::Thermo(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)

  if (strcmp(style,"one") == 0) {
    line = new char[256+6*64];
    memset(line,0,256+6*64);
    strcpy(line,ONE);
  } else if (strcmp(style,"multi") == 0) {
    line = new char[256+12*64];
    memset(line,0,256+12*64);
    strcpy(line,MULTI);
    lineflag = MULTILINE;