mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
fix(heap): fix warnings found by GNU static analyzer
This commit is contained in:
parent
505647292d
commit
fcd2aee74d
@ -101,6 +101,7 @@ void heap_caps_init(void)
|
|||||||
const soc_memory_type_desc_t *type = &soc_memory_types[region->type];
|
const soc_memory_type_desc_t *type = &soc_memory_types[region->type];
|
||||||
heap_t *heap = &temp_heaps[heap_idx];
|
heap_t *heap = &temp_heaps[heap_idx];
|
||||||
if (region->type == -1) {
|
if (region->type == -1) {
|
||||||
|
memset(heap, 0, sizeof(*heap));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
heap_idx++;
|
heap_idx++;
|
||||||
|
Loading…
Reference in New Issue
Block a user