Skip to content

Commit

Permalink
Per #2425, initialize stat_row = 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Apr 12, 2023
1 parent 13a7257 commit 40b9119
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/tc_utils/tc_stat/tc_stat_job.cc
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ void TCStatJob::clear() {
StatFile.clear();
close_stat_file();
StatOut = (ofstream *) 0;
stat_row = 0;

// Set to default values
WaterOnly = default_water_only;
Expand Down Expand Up @@ -1169,6 +1170,8 @@ void TCStatJob::open_stat_file() {

close_stat_file();

stat_row = 0;

if(StatFile.empty()) return;

StatOut = new ofstream;
Expand Down

0 comments on commit 40b9119

Please sign in to comment.