mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 23:38:36 -07:00
Crash message for malloc(0) --nobuild
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user