From 3c6e112c289e73b8dfb8e1bcc74f9bd5c24b8f7d Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Tue, 7 Apr 2015 00:29:29 -0400 Subject: Fix missing SQLite3 statement pointer initialization This fixes a segfault when the database is shut down before it finishes connecting and setting up. --- src/database-sqlite3.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/database-sqlite3.cpp b/src/database-sqlite3.cpp index 45de3cb60..84b1a7122 100644 --- a/src/database-sqlite3.cpp +++ b/src/database-sqlite3.cpp @@ -64,7 +64,9 @@ Database_SQLite3::Database_SQLite3(const std::string &savedir) : m_stmt_read(NULL), m_stmt_write(NULL), m_stmt_list(NULL), - m_stmt_delete(NULL) + m_stmt_delete(NULL), + m_stmt_begin(NULL), + m_stmt_end(NULL) { } -- cgit v1.2.3