Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
ShadowNinja committed Apr 7, 2015
1 parent 392ac41 commit 3c6e112
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/database-sqlite3.cpp
Expand Up @@ -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)
{
}

Expand Down

0 comments on commit 3c6e112

Please sign in to comment.