diff --git a/mm/mm_heap/mm_malloc.c b/mm/mm_heap/mm_malloc.c index 18fae3511b..dc201b16f5 100644 --- a/mm/mm_heap/mm_malloc.c +++ b/mm/mm_heap/mm_malloc.c @@ -359,7 +359,11 @@ FAR void *mm_malloc(FAR struct mm_heap_s *heap, size_t size) # ifdef CONFIG_MM_DUMP_DETAILS_ON_FAILURE struct mm_memdump_s dump = { +#if CONFIG_MM_BACKTRACE >= 0 PID_MM_ALLOC, 0, ULONG_MAX +#else + PID_MM_ALLOC +#endif }; # endif #endif