Skip to content

Commit

Permalink
#2673 Initialize the global variables at process_command_line
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Nov 16, 2023
1 parent 62c3dea commit dbb6c3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tools/core/pcp_combine/pcp_combine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,11 @@ void process_command_line(int argc, char **argv) {
//
cline.parse();

// Initialize
in_accum = 1;
out_accum = 0;
init_time = valid_time = (unixtime) 0;

//
// Process the specific command arguments.
//
Expand Down

0 comments on commit dbb6c3f

Please sign in to comment.