From 01a13889c9669b9b8dfbd6777f0964601e44a5f8 Mon Sep 17 00:00:00 2001 From: Shane Loretz Date: Mon, 19 Mar 2018 10:38:33 -0700 Subject: [PATCH] Check args for NULL --- rcl/src/rcl/arguments.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rcl/src/rcl/arguments.c b/rcl/src/rcl/arguments.c index 21264a9b5..a9943579f 100644 --- a/rcl/src/rcl/arguments.c +++ b/rcl/src/rcl/arguments.c @@ -50,6 +50,9 @@ _rcl_parse_remap_rule( rcl_allocator_t allocator, rcl_remap_t * output_rule) { + RCL_CHECK_ARGUMENT_FOR_NULL(arg, RCL_RET_INVALID_ARGUMENT, allocator); + RCL_CHECK_ARGUMENT_FOR_NULL(output_rule, RCL_RET_INVALID_ARGUMENT, allocator); + size_t len_node_name = 0; size_t len_match = 0; size_t len_replacement = 0;