avoid uninitialized data access

This commit is contained in:
Axel Kohlmeyer
2023-03-25 21:44:43 -04:00
parent e446b950d9
commit 41e13e99fb
2 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,7 @@ Modify::Modify(LAMMPS *lmp) : Pointers(lmp)
list_timeflag = nullptr;
restart_pbc_any = 0;
nfix_restart_global = 0;
id_restart_global = style_restart_global = nullptr;
state_restart_global = nullptr;

View File

@ -76,6 +76,8 @@ Output::Output(LAMMPS *lmp) : Pointers(lmp)
ndump = 0;
max_dump = 0;
any_time_dumps = 0;
next_dump_any = next_time_dump_any = MAXBIGINT;
mode_dump = nullptr;
every_dump = nullptr;
every_time_dump = nullptr;