Skip to content

Commit

Permalink
Fix handling of empty RMW_ZENOH_BUFFER_POOL_MAX_SIZE_BYTES
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Jan 14, 2025
1 parent dfd9d69 commit bee892b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rmw_zenoh_cpp/src/detail/buffer_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ BufferPool::BufferPool()
"rmw_zenoh_cpp",
"Unable to read maximum buffer pool size, falling back to default.");
max_size_ = DEFAULT_MAX_SIZE;
} else if (strcmp(env_value, "") == 0) {
max_size_ = DEFAULT_MAX_SIZE;
} else {
max_size_ = std::atoll(env_value);
}
Expand Down

0 comments on commit bee892b

Please sign in to comment.