Fix missing SQLite3 statement pointer initialization
authorShadowNinja <shadowninja@minetest.net>
Tue, 7 Apr 2015 04:29:29 +0000 (00:29 -0400)
committerShadowNinja <shadowninja@minetest.net>
Tue, 7 Apr 2015 04:31:41 +0000 (00:31 -0400)
This fixes a segfault when the database is shut down
before it finishes connecting and setting up.

src/database-sqlite3.cpp

index 45de3cb605aa251997525faaeec25b2a80792226..84b1a712281a3826f387554fd96a829395fdad83 100644 (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)
 {
 }