From d012b9c1a4ee34d2bcdc7380b361b3fb6345dd95 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 15 Feb 2018 22:46:45 +0100 Subject: Initialize m_handle in Database --- include/sqlitepp/sqlitepp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/sqlitepp/sqlitepp.h b/include/sqlitepp/sqlitepp.h index f253876..efee8b2 100644 --- a/include/sqlitepp/sqlitepp.h +++ b/include/sqlitepp/sqlitepp.h @@ -442,7 +442,7 @@ class Database : private Uncopyable, public Openable { std::shared_ptr prepare(const std::string& sql); private: - sqlite3* m_handle; + sqlite3* m_handle = nullptr; }; /// \brief A result set returned from a SQL query. -- cgit v1.2.1