Skip to content

Commit

Permalink
Ensure m_molecule is always initialized
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Oct 23, 2023
1 parent 2f947b5 commit 5298261
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion avogadro/calc/lennardjones.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5298261

Please sign in to comment.