Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
  • Loading branch information
ivanpauno committed Mar 27, 2020
1 parent 429cd7e commit f76e4c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rmw_cyclonedds_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3045,8 +3045,7 @@ extern "C" rmw_ret_t rmw_get_node_names(
RET_WRONG_IMPLID(node);
auto node_impl = static_cast<CddsNode *>(node->data);
if (rmw_check_zero_rmw_string_array(node_names) != RMW_RET_OK ||
rmw_check_zero_rmw_string_array(node_namespaces) != RMW_RET_OK ||
rmw_check_zero_rmw_string_array(security_contexts) != RMW_RET_OK)
rmw_check_zero_rmw_string_array(node_namespaces) != RMW_RET_OK)
{
return RMW_RET_ERROR;
}
Expand Down Expand Up @@ -3117,7 +3116,8 @@ extern "C" rmw_ret_t rmw_get_node_names_with_security_contexts(
RET_WRONG_IMPLID(node);
auto node_impl = static_cast<CddsNode *>(node->data);
if (rmw_check_zero_rmw_string_array(node_names) != RMW_RET_OK ||
rmw_check_zero_rmw_string_array(node_namespaces) != RMW_RET_OK)
rmw_check_zero_rmw_string_array(node_namespaces) != RMW_RET_OK ||
rmw_check_zero_rmw_string_array(security_contexts) != RMW_RET_OK)
{
return RMW_RET_ERROR;
}
Expand Down

0 comments on commit f76e4c9

Please sign in to comment.