diff options
Diffstat (limited to 'libc/stdlib/malloc/heap_alloc_at.c')
-rw-r--r-- | libc/stdlib/malloc/heap_alloc_at.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/malloc/heap_alloc_at.c b/libc/stdlib/malloc/heap_alloc_at.c index 296c6e552..a65140fea 100644 --- a/libc/stdlib/malloc/heap_alloc_at.c +++ b/libc/stdlib/malloc/heap_alloc_at.c @@ -32,7 +32,7 @@ __heap_alloc_at (struct heap *heap, void *mem, size_t size) for (fa = heap->free_areas; fa; fa = fa->next) { void *fa_mem = HEAP_FREE_AREA_START (fa); - if (fa_mem <= mem) + if (fa_mem <= mem) { if (fa_mem == mem && fa->size >= size) /* FA has the right addr, and is big enough! */ |