Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Crash message for malloc(0) --nobuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Oct 13, 2023
1 parent 862808f commit 7fdda0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion furi/core/memmgr_heap.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ void* pvPortMalloc(size_t xWantedSize) {

configASSERT((((size_t)pvReturn) & (size_t)portBYTE_ALIGNMENT_MASK) == 0);

furi_check(pvReturn, "out of memory");
furi_check(pvReturn, xWantedSize ? "out of memory" : "malloc(0)");
pvReturn = memset(pvReturn, 0, to_wipe);
return pvReturn;
}
Expand Down

0 comments on commit 7fdda0b

Please sign in to comment.