Skip to content

Commit 06b99f5

Browse files
authored
Default initialize node's member variable (jbeder#923)
1 parent c3df6d8 commit 06b99f5

File tree

1 file changed

+1
-1
lines changed
  • include/yaml-cpp/node/detail

1 file changed

+1
-1
lines changed

include/yaml-cpp/node/detail/node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class node {
2424
};
2525

2626
public:
27-
node() : m_pRef(new node_ref), m_dependencies{} {}
27+
node() : m_pRef(new node_ref), m_dependencies{}, m_index{} {}
2828
node(const node&) = delete;
2929
node& operator=(const node&) = delete;
3030

0 commit comments

Comments
 (0)