From 17a7212065a44437973d69e222471dffc797474a Mon Sep 17 00:00:00 2001 From: alandefreitas Date: Tue, 12 Nov 2024 19:09:42 -0300 Subject: [PATCH] refactor(LazyObject): initialize result --- src/lib/Dom/LazyObject.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Dom/LazyObject.hpp b/src/lib/Dom/LazyObject.hpp index f078933b8..4d5cc5d32 100644 --- a/src/lib/Dom/LazyObject.hpp +++ b/src/lib/Dom/LazyObject.hpp @@ -278,7 +278,7 @@ std::size_t LazyObjectImpl:: size() const { - std::size_t result; + std::size_t result = 0; detail::LazyObjectIO io( [&result, this](std::string_view name, auto const& /* value or deferred */) {