Skip to content

Commit

Permalink
Fix uninitialised compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jfowkes committed Feb 6, 2024
1 parent 2efb3e6 commit e45cc03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssids/cpu/BuddyAllocator.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public:
void* allocate(std::size_t sz) {
// Try allocating in existing pages
spral::omp::AcquiredLock scopeLock(lock_);
void* ptr;
void* ptr = nullptr;
for(auto& page: pages_) {
ptr = page.allocate(sz);
if(ptr) break; // allocation suceeded
Expand Down

0 comments on commit e45cc03

Please sign in to comment.