mm/mm_heap/mm_sbrk.c: Fix backward conditional test. Should call mm_initialize() when brkaddr equal zero

This commit is contained in:
Xiang Xiao 2019-01-26 07:07:42 -06:00 committed by Gregory Nutt
parent 2e70eef767
commit e15670a191
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ FAR void *mm_sbrk(FAR struct mm_heap_s *heap, intptr_t incr,
*/
bytesize = pgincr << MM_PGSHIFT;
if (brkaddr != 0)
if (brkaddr == 0)
{
/* No... then initialize it now */