Skip to content

Commit

Permalink
Check args for NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
sloretz committed Mar 19, 2018
1 parent 74b042b commit 01a1388
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rcl/src/rcl/arguments.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 01a1388

Please sign in to comment.