forked from Mirrorlandia_minetest/minetest
Fix possible unreliable behavior due to uninitialized variables
This commit is contained in:
parent
f5a8593b11
commit
0f8c46771e
@ -483,6 +483,7 @@ const std::list<ActionRow> RollbackManager::actionRowsFromSelect(sqlite3_stmt* s
|
|||||||
row.actor = sqlite3_column_int (stmt, 0);
|
row.actor = sqlite3_column_int (stmt, 0);
|
||||||
row.timestamp = sqlite3_column_int64(stmt, 1);
|
row.timestamp = sqlite3_column_int64(stmt, 1);
|
||||||
row.type = sqlite3_column_int (stmt, 2);
|
row.type = sqlite3_column_int (stmt, 2);
|
||||||
|
row.nodeMeta = 0;
|
||||||
|
|
||||||
if (row.type == RollbackAction::TYPE_MODIFY_INVENTORY_STACK) {
|
if (row.type == RollbackAction::TYPE_MODIFY_INVENTORY_STACK) {
|
||||||
text = sqlite3_column_text (stmt, 3);
|
text = sqlite3_column_text (stmt, 3);
|
||||||
|
Loading…
Reference in New Issue
Block a user