diff options
author | ShadowNinja <shadowninja@minetest.net> | 2015-04-07 00:29:29 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-04-07 00:31:41 -0400 |
commit | 3c6e112c289e73b8dfb8e1bcc74f9bd5c24b8f7d (patch) | |
tree | abd7f5eae162143ba1975d2bc0e8b9054f34de8e | |
parent | 392ac41c993daba284d4840fe93169f802d860b6 (diff) | |
download | minetest-3c6e112c289e73b8dfb8e1bcc74f9bd5c24b8f7d.tar.gz minetest-3c6e112c289e73b8dfb8e1bcc74f9bd5c24b8f7d.tar.bz2 minetest-3c6e112c289e73b8dfb8e1bcc74f9bd5c24b8f7d.zip |
Fix missing SQLite3 statement pointer initialization
This fixes a segfault when the database is shut down
before it finishes connecting and setting up.
-rw-r--r-- | src/database-sqlite3.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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) { } |