Skip to content

Commit

Permalink
Fix cluster test project-chip#161
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille committed Jan 11, 2022
1 parent 5236d05 commit a1ab5d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/clusters/test-cluster-server/test-cluster-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,11 @@ bool emberAfTestClusterClusterTestListInt8UReverseRequestCallback(
{
auto iter = commandData.arg1.begin();
Commands::TestListInt8UReverseResponse::Type responseData;
if (count == 0)
{
SuccessOrExit(commandObj->AddResponseData(commandPath, responseData));
return true;
}
size_t cur = count;
Platform::ScopedMemoryBuffer<uint8_t> responseBuf;
VerifyOrExit(responseBuf.Calloc(count), );
Expand Down

0 comments on commit a1ab5d2

Please sign in to comment.