Skip to content

Commit

Permalink
Address further review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ksperling-apple committed Jan 19, 2025
1 parent abf6347 commit 3c0b769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/AutoCommissioner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ CHIP_ERROR AutoCommissioner::SetCommissioningParameters(const CommissioningParam
// We can't reallocate mExtraReadPaths yet as this would free the old buffer,
// and the caller might be passing a sub-span of the old paths.
decltype(mExtraReadPaths) oldReadPaths(std::move(mExtraReadPaths));
VerifyOrReturnError(mExtraReadPaths.Alloc(extraReadPaths.size()).Get() != nullptr, CHIP_ERROR_NO_MEMORY);
VerifyOrReturnError(mExtraReadPaths.Alloc(extraReadPaths.size()), CHIP_ERROR_NO_MEMORY);
memcpy(mExtraReadPaths.Get(), extraReadPaths.data(), extraReadPaths.size() * sizeof(ReadPath));
}

Expand Down

0 comments on commit 3c0b769

Please sign in to comment.