Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Knese Karsten <karsten@openrobotics.org>
  • Loading branch information
Karsten1987 committed Oct 11, 2019
1 parent b173e91 commit f2ea2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rcl/src/rcl/subscription.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ rcl_take_loaned_message(
if (!rcl_subscription_is_valid(subscription)) {
return RCL_RET_SUBSCRIPTION_INVALID; // error already set
}
if (loaned_message) {
if (*loaned_message) {
RCL_SET_ERROR_MSG("loaned message is already initialized");
return RCL_RET_INVALID_ARGUMENT;
}
Expand Down

0 comments on commit f2ea2e1

Please sign in to comment.