mirror of
https://github.com/apache/nuttx.git
synced 2026-10-12 00:30:23 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue