Skip to content

Commit 0ddf087

Browse files
Make rmw_destroy_wait_set return RMW_RET_INVALID_ARGUMENT (#766)
Signed-off-by: Christophe Bedard <[email protected]>
1 parent 97edce2 commit 0ddf087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rmw_fastrtps_shared_cpp/src/rmw_wait_set.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ __rmw_create_wait_set(const char * identifier, rmw_context_t * context, size_t m
7676
rmw_ret_t
7777
__rmw_destroy_wait_set(const char * identifier, rmw_wait_set_t * wait_set)
7878
{
79-
RMW_CHECK_ARGUMENT_FOR_NULL(wait_set, RMW_RET_ERROR);
79+
RMW_CHECK_ARGUMENT_FOR_NULL(wait_set, RMW_RET_INVALID_ARGUMENT);
8080
RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
8181
wait set handle,
8282
wait_set->implementation_identifier, identifier,

0 commit comments

Comments
 (0)