aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOctavian <coctavian10@yahoo.ro>2022-05-10 13:34:59 +0300
committersfan5 <sfan5@live.de>2022-05-14 18:33:42 +0200
commit38557ff63512945657bc4a97b3ca435cd7b711a8 (patch)
tree82bbdca8fc7321c276c5c6f5c8b0572b7b2901c6
parent7bc2cde4ddd7a3e75a96d4bc77e5140b810d318f (diff)
downloadminetest-38557ff63512945657bc4a97b3ca435cd7b711a8.tar.gz
minetest-38557ff63512945657bc4a97b3ca435cd7b711a8.tar.bz2
minetest-38557ff63512945657bc4a97b3ca435cd7b711a8.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);