Skip to content

Commit

Permalink
Fix bug in graph API by node (#316) (#323)
Browse files Browse the repository at this point in the history
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
  • Loading branch information
ivanpauno authored Sep 26, 2019
1 parent e114130 commit bb93a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_fastrtps_shared_cpp/src/rmw_node_info_and_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ rmw_ret_t __get_guid_by_name(
const char * node_namespace, GUID_t & guid)
{
auto impl = static_cast<CustomParticipantInfo *>(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<GUID_t> nodes_in_desired_namespace;
Expand Down

0 comments on commit bb93a4b

Please sign in to comment.