From 8605e5e6bb10182695c42bf0d01c74c9bed619a6 Mon Sep 17 00:00:00 2001 From: hellkite500 Date: Thu, 13 Jun 2024 12:27:33 -0600 Subject: [PATCH] fix: explicitly intialize class pointers to nullptr --- include/bmi_lgar.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bmi_lgar.hxx b/include/bmi_lgar.hxx index 741b419..b29339a 100644 --- a/include/bmi_lgar.hxx +++ b/include/bmi_lgar.hxx @@ -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";