Skip to content

Commit

Permalink
fix compile error,maybe uninitialized variable (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
20083017 authored Jan 16, 2025
1 parent 940a39d commit ce4f94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion async_simple/coro/test/PMRLazyTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ TEST_F(PMRLazyTest, testStdAllocator) {

#if __has_include(<memory_resource>)
TEST_F(PMRLazyTest, testPMRAllocator) {
std::array<std::byte, 1024> stack_buffer;
std::array<std::byte, 1024> stack_buffer {};
std::pmr::monotonic_buffer_resource stack_memory_resource(
stack_buffer.data(), stack_buffer.size());
std::pmr::polymorphic_allocator stack_allocator(&stack_memory_resource);
Expand Down

0 comments on commit ce4f94c

Please sign in to comment.