Skip to content

Commit 2273941

Browse files
authored
Initialize template variable T out (#839)
1 parent b8277b7 commit 2273941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/behaviortree_cpp/tree_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class TreeNode
256256
template <typename T>
257257
[[nodiscard]] Expected<T> getInput(const std::string& key) const
258258
{
259-
T out;
259+
T out{};
260260
auto res = getInput(key, out);
261261
return (res) ? Expected<T>(out) : nonstd::make_unexpected(res.error());
262262
}

0 commit comments

Comments
 (0)