diff options
author | Robin Krahl <me@robin-krahl.de> | 2018-02-15 22:46:45 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2018-02-15 22:46:45 +0100 |
commit | d012b9c1a4ee34d2bcdc7380b361b3fb6345dd95 (patch) | |
tree | 5cc8b733acb16937b5eef33ff37d34bcf8f671c7 /include | |
parent | 42de7326c1aa2bcf621a83a8dbb0ac5c44bdc4fb (diff) | |
download | sqlitepp-d012b9c1a4ee34d2bcdc7380b361b3fb6345dd95.tar.gz sqlitepp-d012b9c1a4ee34d2bcdc7380b361b3fb6345dd95.tar.bz2 |
Initialize m_handle in Database
Diffstat (limited to 'include')
-rw-r--r-- | include/sqlitepp/sqlitepp.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<Statement> prepare(const std::string& sql); private: - sqlite3* m_handle; + sqlite3* m_handle = nullptr; }; /// \brief A result set returned from a SQL query. |