Skip to content

Commit 8c03156

Browse files
committed
fix typo
Signed-off-by: Knese Karsten <[email protected]>
1 parent d89b7ad commit 8c03156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rcl/src/rcl/subscription.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ rcl_take_loaned_message(
321321
if (!rcl_subscription_is_valid(subscription)) {
322322
return RCL_RET_SUBSCRIPTION_INVALID; // error already set
323323
}
324-
if (loaned_message) {
324+
if (*loaned_message) {
325325
RCL_SET_ERROR_MSG("loaned message is already initialized");
326326
return RCL_RET_INVALID_ARGUMENT;
327327
}

0 commit comments

Comments
 (0)