Crash message for malloc(0) --nobuild

This commit is contained in:
Willy-JL
2023-10-13 07:11:09 +01:00
parent 862808f054
commit 7fdda0bb84

View File

@@ -481,7 +481,7 @@ void* pvPortMalloc(size_t xWantedSize) {
configASSERT((((size_t)pvReturn) & (size_t)portBYTE_ALIGNMENT_MASK) == 0); 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); pvReturn = memset(pvReturn, 0, to_wipe);
return pvReturn; return pvReturn;
} }