1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-05 17:05:05 -05:00

Fix missing SQLite3 statement pointer initialization

This fixes a segfault when the database is shut down
before it finishes connecting and setting up.
This commit is contained in:
ShadowNinja 2015-04-07 00:29:29 -04:00
parent 392ac41c99
commit 3c6e112c28

View File

@ -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)
{
}