From e1fe334dd467e5d9bc5b860578abbc176a380a93 Mon Sep 17 00:00:00 2001 From: ivanpauno Date: Thu, 12 Sep 2019 11:02:20 -0700 Subject: [PATCH] Fix bug in graph API by node Signed-off-by: ivanpauno --- rmw_fastrtps_shared_cpp/src/rmw_node_info_and_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmw_fastrtps_shared_cpp/src/rmw_node_info_and_types.cpp b/rmw_fastrtps_shared_cpp/src/rmw_node_info_and_types.cpp index 3630c23be..414e17470 100644 --- a/rmw_fastrtps_shared_cpp/src/rmw_node_info_and_types.cpp +++ b/rmw_fastrtps_shared_cpp/src/rmw_node_info_and_types.cpp @@ -59,7 +59,7 @@ rmw_ret_t __get_guid_by_name( const char * node_namespace, GUID_t & guid) { auto impl = static_cast(node->data); - if (strcmp(node->name, node_name) == 0) { + if (strcmp(node->name, node_name) == 0 && strcmp(node->namespace_, node_namespace) == 0) { guid = impl->participant->getGuid(); } else { std::set nodes_in_desired_namespace;