diff options
Diffstat (limited to 'nuttx/mm/mm_heap/mm_malloc.c')
-rw-r--r-- | nuttx/mm/mm_heap/mm_malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/mm/mm_heap/mm_malloc.c b/nuttx/mm/mm_heap/mm_malloc.c index 20b1916c8..9890e5712 100644 --- a/nuttx/mm/mm_heap/mm_malloc.c +++ b/nuttx/mm/mm_heap/mm_malloc.c @@ -91,7 +91,7 @@ FAR void *mm_malloc(FAR struct mm_heap_s *heap, size_t size) /* Handle bad sizes */ - if (size <= 0) + if (size < 1) { return NULL; } |