projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
392ac41
)
Fix missing SQLite3 statement pointer initialization
author
ShadowNinja
<shadowninja@minetest.net>
Tue, 7 Apr 2015 04:29:29 +0000
(
00:29
-0400)
committer
ShadowNinja
<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
patch
|
blob
|
history
diff --git
a/src/database-sqlite3.cpp
b/src/database-sqlite3.cpp
index 45de3cb605aa251997525faaeec25b2a80792226..84b1a712281a3826f387554fd96a829395fdad83 100644
(file)
--- 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)
{
}