heap: Fix type for heap monitor memset size

This commit is contained in:
CTCaer committed 2019-12-09 19:30:45 +02:00
1 parent d0850516ab
commit bd8a5ece58
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -137,7 +137,7 @@ void free(void *buf)
void heap_monitor(heap_monitor_t *mon, bool print_node_stats)
{
u32 count = 0;
memset(mon, 0, sizeof(heap_monitor));
memset(mon, 0, sizeof(heap_monitor_t));
hnode_t *node = _heap.first;
while (true)
+1 -1
View File
@@ -137,7 +137,7 @@ void free(void *buf)
void heap_monitor(heap_monitor_t *mon, bool print_node_stats)
{
u32 count = 0;
memset(mon, 0, sizeof(heap_monitor));
memset(mon, 0, sizeof(heap_monitor_t));
hnode_t *node = _heap.first;
while (true)