Skip to content

Commit 17a7212

Browse files
committed
refactor(LazyObject): initialize result
1 parent df43d87 commit 17a7212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Dom/LazyObject.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ std::size_t
278278
LazyObjectImpl<T, Context>::
279279
size() const
280280
{
281-
std::size_t result;
281+
std::size_t result = 0;
282282
detail::LazyObjectIO io(
283283
[&result, this](std::string_view name, auto const& /* value or deferred */)
284284
{

0 commit comments

Comments
 (0)