Skip to content

Commit 3c6e112

Browse files
committedApr 7, 2015
Fix missing SQLite3 statement pointer initialization
This fixes a segfault when the database is shut down before it finishes connecting and setting up.
1 parent 392ac41 commit 3c6e112

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

Diff for: ‎src/database-sqlite3.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ Database_SQLite3::Database_SQLite3(const std::string &savedir) :
6464
m_stmt_read(NULL),
6565
m_stmt_write(NULL),
6666
m_stmt_list(NULL),
67-
m_stmt_delete(NULL)
67+
m_stmt_delete(NULL),
68+
m_stmt_begin(NULL),
69+
m_stmt_end(NULL)
6870
{
6971
}
7072

0 commit comments

Comments
 (0)
Please sign in to comment.