We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d89b7ad commit 8c03156Copy full SHA for 8c03156
rcl/src/rcl/subscription.c
@@ -321,7 +321,7 @@ rcl_take_loaned_message(
321
if (!rcl_subscription_is_valid(subscription)) {
322
return RCL_RET_SUBSCRIPTION_INVALID; // error already set
323
}
324
- if (loaned_message) {
+ if (*loaned_message) {
325
RCL_SET_ERROR_MSG("loaned message is already initialized");
326
return RCL_RET_INVALID_ARGUMENT;
327
0 commit comments