Skip to content

Commit 80e0996

Browse files
Make rmw_destroy_wait_set return RMW_RET_INVALID_ARGUMENT (#498)
Signed-off-by: Christophe Bedard <[email protected]>
1 parent 76c9d8f commit 80e0996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rmw_cyclonedds_cpp/src/rmw_node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4195,7 +4195,7 @@ extern "C" rmw_wait_set_t * rmw_create_wait_set(rmw_context_t * context, size_t
41954195

41964196
extern "C" rmw_ret_t rmw_destroy_wait_set(rmw_wait_set_t * wait_set)
41974197
{
4198-
RET_NULL(wait_set);
4198+
RMW_CHECK_ARGUMENT_FOR_NULL(wait_set, RMW_RET_INVALID_ARGUMENT);
41994199
RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
42004200
wait_set, wait_set->implementation_identifier,
42014201
eclipse_cyclonedds_identifier, return RMW_RET_INCORRECT_RMW_IMPLEMENTATION);

0 commit comments

Comments
 (0)