From 060a03e055ea05a5a2d63ccb6556b21b0a37e1a0 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 13 Apr 2022 20:49:33 +0200 Subject: [PATCH] Fix accidental shadowing --- src/Cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cache.cpp b/src/Cache.cpp index f3ad4fc5..189c5956 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -1548,7 +1548,7 @@ Cache::updateState(const std::string &room, const mtx::responses::StateEvents &s std::string_view data; if (roomsDb_.get(txn, room, data)) { try { - RoomInfo updatedInfo = json::parse(std::string_view(data.data(), data.size())); + updatedInfo = json::parse(std::string_view(data.data(), data.size())); } catch (const json::exception &e) { nhlog::db()->warn("failed to parse room info: room_id ({}), {}: {}", room,