aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2018-02-15 22:46:45 +0100
committerRobin Krahl <me@robin-krahl.de>2018-02-15 22:46:45 +0100
commitd012b9c1a4ee34d2bcdc7380b361b3fb6345dd95 (patch)
tree5cc8b733acb16937b5eef33ff37d34bcf8f671c7
parent42de7326c1aa2bcf621a83a8dbb0ac5c44bdc4fb (diff)
downloadsqlitepp-d012b9c1a4ee34d2bcdc7380b361b3fb6345dd95.tar.gz
sqlitepp-d012b9c1a4ee34d2bcdc7380b361b3fb6345dd95.tar.bz2
Initialize m_handle in Database
-rw-r--r--include/sqlitepp/sqlitepp.h2
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.