Skip to content

Commit

Permalink
Per #1904, fixing a minor copy/paste bug in gen_ens_prod. We were che…
Browse files Browse the repository at this point in the history
…cking the length of config_file instead of out_file. This became obvious when running gen_ens_prod without the -out option. That run segfaulted because it tried to create an output file using an empty string.
  • Loading branch information
JohnHalleyGotway committed Mar 6, 2022
1 parent 43c7dad commit a40aeeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion met/src/tools/other/gen_ens_prod/gen_ens_prod.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void process_command_line(int argc, char **argv) {
<< "\"-ens\" option.\n\n";
exit(1);
}
if(config_file.length() == 0) {
if(out_file.length() == 0) {
mlog << Error << "\nprocess_command_line() -> "
<< "the output file must be set using the "
<< "\"-out\" option.\n\n";
Expand Down

0 comments on commit a40aeeb

Please sign in to comment.