diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/util/simple_heap.h b/projects/rocr-runtime/runtime/hsa-runtime/core/util/simple_heap.h index 3d45a54b2b..367c59a920 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/util/simple_heap.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/util/simple_heap.h @@ -134,7 +134,7 @@ template class SimpleHeap { // Find best fit. auto free_fragment = free_list_.lower_bound(bytes); uintptr_t base; - size_t size; + size_t size = 0; if (free_fragment != free_list_.end()) { base = free_fragment->second;