diff --git a/libgnucash/backend/xml/gnc-xml-backend.hpp b/libgnucash/backend/xml/gnc-xml-backend.hpp index 2710115829..cc3ff7c55f 100644 --- a/libgnucash/backend/xml/gnc-xml-backend.hpp +++ b/libgnucash/backend/xml/gnc-xml-backend.hpp @@ -61,6 +61,6 @@ private: std::string m_linkfile; int m_lockfd; - QofBook* m_book; /* The primary, main open book */ + QofBook* m_book = nullptr; /* The primary, main open book */ }; #endif // __GNC_XML_BACKEND_HPP__