Skip to content

Commit

Permalink
Add missing check in for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHogan committed May 24, 2022
1 parent fc22aa9 commit 57a566c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/hermes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ SharedMemoryContext InitHermesCore(Config *config, CommunicationContext *comm,
rpc->num_host_numbers = num_host_numbers;
rpc->host_numbers = PushArray<int>(&arenas[kArenaType_MetaData],
num_host_numbers);
for (size_t i = 0; num_host_numbers; ++i) {
for (size_t i = 0; i < num_host_numbers; ++i) {
rpc->host_numbers[i] = config->host_numbers[i];
}
mdm->host_numbers_offset = (u8 *)rpc->host_numbers - (u8 *)shmem_base;
Expand Down

0 comments on commit 57a566c

Please sign in to comment.