Skip to content

Commit

Permalink
fix: explicitly intialize class pointers to nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 committed Jun 13, 2024
1 parent e652bb2 commit 8605e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/bmi_lgar.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class NotImplemented : public std::logic_error {
class BmiLGAR : public bmi::Bmi {
public:
~BmiLGAR();
BmiLGAR() {
BmiLGAR():giuh_ordinates(nullptr), giuh_runoff_queue(nullptr) {
this->input_var_names[0] = "precipitation_rate";
this->input_var_names[1] = "potential_evapotranspiration_rate";
this->input_var_names[2] = "soil_temperature_profile";
Expand Down

0 comments on commit 8605e5e

Please sign in to comment.