Skip to content

Commit

Permalink
#1996 Initialize the variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Feb 25, 2022
1 parent 4471c4a commit c5a80d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions met/src/libcode/vx_nc_obs/met_point_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ void MetPointHeader::reset_counters() {
strl_len = 0;
strll_len = 0;
hdr_count = 0;
hdr_type_count = 0;

min_vld_time = -1;
max_vld_time = -1;
Expand Down
2 changes: 2 additions & 0 deletions met/src/libcode/vx_nc_obs/nc_obs_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ void NcDataBuffer::reset_counters() {
hdr_data_offset = 0;
pb_hdr_count = 0;
pb_hdr_data_offset = 0;
prev_hdr_vld = 0;
}

///////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -988,6 +989,7 @@ void NetcdfObsVars::reset(bool _use_var_id) {
deflate_level = 0;
hdr_cnt = 0; // header array length (fixed dimension if hdr_cnt > 0)
obs_cnt = 0; // obs. array length (fixed dimension if obs_cnt > 0)
raw_hdr_cnt = 0;
//hdr_str_len = 0; // string length for header (message) type header
}

Expand Down

0 comments on commit c5a80d5

Please sign in to comment.