Skip to content

Commit

Permalink
Initialize uninitialized scalar field lastAccessMiss
Browse files Browse the repository at this point in the history
Initialize uninitialized scalar field lastAccessMiss.
It fixes the Coverity issue #449482.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
  • Loading branch information
ldorau committed Aug 10, 2023
1 parent 32d5ec1 commit 8597255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tbbmalloc/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ class FreeBlockPool {
};

// allocated in zero-initialized memory
FreeBlockPool(Backend *bknd) : backend(bknd) {}
FreeBlockPool(Backend *bknd) : backend(bknd), lastAccessMiss(false) {}
ResOfGet getBlock();
void returnBlock(Block *block);
bool externalCleanup(); // can be called by another thread
Expand Down

0 comments on commit 8597255

Please sign in to comment.