From 0bf834340577f58c11ac8a67ecc9c51047b46220 Mon Sep 17 00:00:00 2001 From: ilya-talankin <115388729+ilya-talankin@users.noreply.github.com> Date: Tue, 30 Sep 2025 11:07:05 +0500 Subject: [PATCH] Fix default member initialization --- include/boost/property_tree/ptree.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/property_tree/ptree.hpp b/include/boost/property_tree/ptree.hpp index 2743123c9..3b4acef36 100644 --- a/include/boost/property_tree/ptree.hpp +++ b/include/boost/property_tree/ptree.hpp @@ -492,10 +492,10 @@ namespace boost { namespace property_tree private: // Hold the data of this node - data_type m_data; + data_type m_data {}; // Hold the children - this is a void* because we can't complete the // container type within the class. - void* m_children; + void* m_children {}; // Getter tree-walk. Not const-safe! Gets the node the path refers to, // or null. Destroys p's value.