Permalink
Browse files

Fix missing SQLite3 statement pointer initialization

This fixes a segfault when the database is shut down
before it finishes connecting and setting up.
  • Loading branch information...
1 parent 392ac41 commit 3c6e112c289e73b8dfb8e1bcc74f9bd5c24b8f7d @ShadowNinja ShadowNinja committed Apr 7, 2015
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/database-sqlite3.cpp
View
@@ -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)
{
}

0 comments on commit 3c6e112

Please sign in to comment.