fix(heap): fix warnings found by GNU static analyzer

pull/14088/head
Alexey Lapshin 2024-06-06 15:18:04 +07:00 zatwierdzone przez BOT
rodzic 505647292d
commit fcd2aee74d
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -101,6 +101,7 @@ void heap_caps_init(void)
const soc_memory_type_desc_t *type = &soc_memory_types[region->type];
heap_t *heap = &temp_heaps[heap_idx];
if (region->type == -1) {
memset(heap, 0, sizeof(*heap));
continue;
}
heap_idx++;