From 239ee6797a95b24f8f865997cc4ddb1d91f882ae Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Wed, 8 Aug 2018 15:46:23 +0200 Subject: [PATCH] Fix crash when cancelling a Save As... overwrite action This was discovered while trying to fix bug 796792. However that bug itself is totally unrelated. --- libgnucash/backend/xml/gnc-xml-backend.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__