From c5a80d57992124499471ec8c40b2d8d8cfef509f Mon Sep 17 00:00:00 2001 From: Howard Soh Date: Thu, 24 Feb 2022 22:32:24 -0700 Subject: [PATCH] #1996 Initialize the variable --- met/src/libcode/vx_nc_obs/met_point_data.cc | 1 + met/src/libcode/vx_nc_obs/nc_obs_util.cc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/met/src/libcode/vx_nc_obs/met_point_data.cc b/met/src/libcode/vx_nc_obs/met_point_data.cc index 8eb762b008..d512fd8d91 100644 --- a/met/src/libcode/vx_nc_obs/met_point_data.cc +++ b/met/src/libcode/vx_nc_obs/met_point_data.cc @@ -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; diff --git a/met/src/libcode/vx_nc_obs/nc_obs_util.cc b/met/src/libcode/vx_nc_obs/nc_obs_util.cc index 42c14fd747..036122b8a3 100644 --- a/met/src/libcode/vx_nc_obs/nc_obs_util.cc +++ b/met/src/libcode/vx_nc_obs/nc_obs_util.cc @@ -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; } /////////////////////////////////////////////////////////////////////////////// @@ -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 }