diff --git a/include/behaviortree_cpp/tree_node.h b/include/behaviortree_cpp/tree_node.h index 32c8fadb9..537176519 100644 --- a/include/behaviortree_cpp/tree_node.h +++ b/include/behaviortree_cpp/tree_node.h @@ -256,7 +256,7 @@ class TreeNode template [[nodiscard]] Expected getInput(const std::string& key) const { - T out; + T out{}; auto res = getInput(key, out); return (res) ? Expected(out) : nonstd::make_unexpected(res.error()); }