diff --git a/mm/mm_heap/mm_malloc.c b/mm/mm_heap/mm_malloc.c index fa623b5e6a..cf72dc9931 100644 --- a/mm/mm_heap/mm_malloc.c +++ b/mm/mm_heap/mm_malloc.c @@ -87,7 +87,7 @@ FAR void *mm_malloc(FAR struct mm_heap_s *heap, size_t size) */ alignsize = MM_ALIGN_UP(size + SIZEOF_MM_ALLOCNODE); - DEBUGASSERT(alignedsize >= size); /* Check for integer overflow */ + DEBUGASSERT(alignsize >= size); /* Check for integer overflow */ /* We need to hold the MM semaphore while we muck with the nodelist. */