Skip to content

Commit

Permalink
#1965 initialize var_idx
Browse files Browse the repository at this point in the history
  • Loading branch information
hsoh-u authored Jan 12, 2022
1 parent 5617aa2 commit ee76143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion met/src/tools/other/ioda2nc/ioda2nc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ void process_ioda_file(int i_pb) {

n_hdr_obs = 0;
for(idx=0; idx<v_obs_data.size(); idx++ ) {
int var_idx;
int var_idx = 0;
if (!obs_var_names.has(raw_var_names[idx], var_idx)) {
mlog << Warning << "\n" << method_name
<< "Skip the variable " << raw_var_names[idx]
Expand Down

0 comments on commit ee76143

Please sign in to comment.