forked from lijiext/lammps
make valgrind happy by fully initializing line buffer for thermo output
This commit is contained in:
parent
daa53e3008
commit
fd93c27dcb
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue