mm/mm_heap/mm_sbrk.c: Fix backward conditional test. Should call mm_initialize() when brkaddr equal zero
This commit is contained in:
parent
2e70eef767
commit
e15670a191
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user