make valgrind happy by fully initializing line buffer for thermo output

This commit is contained in:
Axel Kohlmeyer 2019-06-17 07:35:30 -04:00
parent daa53e3008
commit fd93c27dcb
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 0 deletions

View File

@ -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;