From 09d4797a9bf9c46edf1798b39dc604a622658b3a Mon Sep 17 00:00:00 2001 From: Stephen Brawner Date: Thu, 27 Aug 2020 16:29:06 -0700 Subject: [PATCH] Address feedback Signed-off-by: Stephen Brawner --- rmw/src/topic_endpoint_info.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rmw/src/topic_endpoint_info.c b/rmw/src/topic_endpoint_info.c index 305152b8..5f6719ca 100644 --- a/rmw/src/topic_endpoint_info.c +++ b/rmw/src/topic_endpoint_info.c @@ -109,6 +109,7 @@ _rmw_topic_endpoint_info_copy_str( rcutils_allocator_t * allocator) { RCUTILS_CAN_RETURN_WITH_ERROR_OF(RMW_RET_INVALID_ARGUMENT); + RCUTILS_CAN_RETURN_WITH_ERROR_OF(RMW_RET_BAD_ALLOC); if (!str) { RMW_SET_ERROR_MSG("str is null");