Skip to content

Commit

Permalink
Fix a false positive "may be used uninitialized"
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Boasson <[email protected]>
  • Loading branch information
eboasson committed Mar 6, 2024
1 parent 93e3faa commit e6cd5dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/ddsc/src/dds_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ static dds_return_t dds_write_impl_psmxloan_serdata (struct dds_writer *wr, cons
dds_loaned_sample_unref (loan);
return DDS_RETCODE_BAD_PARAMETER;
}
break;
return DDS_RETCODE_OK;
case DDS_LOAN_ORIGIN_KIND_HEAP:
if (wr->m_endpoint.psmx_endpoints.length == 0)
{
Expand Down Expand Up @@ -718,9 +718,9 @@ static dds_return_t dds_write_impl_psmxloan_serdata (struct dds_writer *wr, cons
return DDS_RETCODE_OUT_OF_RESOURCES;
}
}
break;
return DDS_RETCODE_OK;
}
return DDS_RETCODE_OK;
return DDS_RETCODE_ERROR;
}
else if (use_only_psmx && sertype->is_memcpy_safe)
{
Expand Down

0 comments on commit e6cd5dc

Please sign in to comment.