Skip to content

Commit

Permalink
Make rmw_destroy_wait_set return RMW_RET_INVALID_ARGUMENT (#766)
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
  • Loading branch information
christophebedard authored Jun 13, 2024
1 parent 97edce2 commit 0ddf087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_fastrtps_shared_cpp/src/rmw_wait_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ __rmw_create_wait_set(const char * identifier, rmw_context_t * context, size_t m
rmw_ret_t
__rmw_destroy_wait_set(const char * identifier, rmw_wait_set_t * wait_set)
{
RMW_CHECK_ARGUMENT_FOR_NULL(wait_set, RMW_RET_ERROR);
RMW_CHECK_ARGUMENT_FOR_NULL(wait_set, RMW_RET_INVALID_ARGUMENT);
RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
wait set handle,
wait_set->implementation_identifier, identifier,
Expand Down

0 comments on commit 0ddf087

Please sign in to comment.