aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOctavian <coctavian10@yahoo.ro>2022-05-10 13:34:59 +0300
committersfan5 <sfan5@live.de>2022-05-10 22:36:25 +0200
commit0f8c46771ef5ccbb8100f5e731158ef98db57c95 (patch)
tree75e35baf675b141799d614f9725b927e7b217833
parentf5a8593b11382b70ee969dc93b71f34fb0cad5df (diff)
downloadminetest-0f8c46771ef5ccbb8100f5e731158ef98db57c95.tar.gz
minetest-0f8c46771ef5ccbb8100f5e731158ef98db57c95.tar.bz2
minetest-0f8c46771ef5ccbb8100f5e731158ef98db57c95.zip
Fix possible unreliable behavior due to uninitialized variables
-rw-r--r--src/rollback.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rollback.cpp b/src/rollback.cpp
index 33b7958b9..b454e40c9 100644
--- a/src/rollback.cpp
+++ b/src/rollback.cpp
@@ -483,6 +483,7 @@ const std::list<ActionRow> RollbackManager::actionRowsFromSelect(sqlite3_stmt* s
row.actor = sqlite3_column_int (stmt, 0);
row.timestamp = sqlite3_column_int64(stmt, 1);
row.type = sqlite3_column_int (stmt, 2);
+ row.nodeMeta = 0;
if (row.type == RollbackAction::TYPE_MODIFY_INVENTORY_STACK) {
text = sqlite3_column_text (stmt, 3);