From 5298261affa7c49a494ceadcda9ba54cf0c1fd5f Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Mon, 23 Oct 2023 15:09:38 -0400 Subject: [PATCH] Ensure m_molecule is always initialized Signed-off-by: Geoff Hutchison --- avogadro/calc/lennardjones.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/avogadro/calc/lennardjones.cpp b/avogadro/calc/lennardjones.cpp index 1dede2af31..be9ffc2927 100644 --- a/avogadro/calc/lennardjones.cpp +++ b/avogadro/calc/lennardjones.cpp @@ -12,7 +12,8 @@ namespace Avogadro::Calc { LennardJones::LennardJones() - : m_vdw(true), m_depth(100.0), m_exponent(6), m_cell(nullptr) + : m_vdw(true), m_depth(100.0), m_exponent(6), m_cell(nullptr), + m_molecule(nullptr) { // defined for 1-118 for (unsigned int i = 1; i <= 118; ++i) {