From 1d99e76a07ee2c92b5b98a01b99848939f31453d Mon Sep 17 00:00:00 2001
From: renchao_lu <renchao.lu@gmail.com>
Date: Sun, 9 Jun 2019 17:14:47 +0200
Subject: [PATCH] [CL] Assign uninitialized member variables.

---
 ChemistryLib/PhreeqcIO.h                     | 2 +-
 ChemistryLib/PhreeqcIOData/AqueousSolution.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ChemistryLib/PhreeqcIO.h b/ChemistryLib/PhreeqcIO.h
index 10e431d4bac..62d80eb3172 100644
--- a/ChemistryLib/PhreeqcIO.h
+++ b/ChemistryLib/PhreeqcIO.h
@@ -80,6 +80,6 @@ private:
     std::unique_ptr<Output> const _output;
     std::vector<std::pair<int, std::string>> const&
         _process_id_to_component_name_map;
-    double _dt;
+    double _dt = std::numeric_limits<double>::quiet_NaN();
 };
 }  // namespace ChemistryLib
diff --git a/ChemistryLib/PhreeqcIOData/AqueousSolution.h b/ChemistryLib/PhreeqcIOData/AqueousSolution.h
index 648bbc6972e..403be34c2d0 100644
--- a/ChemistryLib/PhreeqcIOData/AqueousSolution.h
+++ b/ChemistryLib/PhreeqcIOData/AqueousSolution.h
@@ -22,7 +22,7 @@ struct Component
     explicit Component(std::string name_) : name(std::move(name_)) {}
 
     std::string const name;
-    double amount;
+    double amount = std::numeric_limits<double>::quiet_NaN();
     static const ItemType item_type = ItemType::Component;
 };
 
@@ -53,7 +53,7 @@ struct AqueousSolution
 
     double temperature;
     double pressure;
-    double pH;
+    double pH = std::numeric_limits<double>::quiet_NaN();
     double pe;
     std::vector<Component> components;
     MeansOfAdjustingCharge const means_of_adjusting_charge;
-- 
GitLab