mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-24 05:34:45 -07:00
removing MPU Hal - details in desc
since it impossible for me to debug NULL pointer dereference without flipper, blind developing went to its end
This commit is contained in:
@@ -36,8 +36,10 @@ void* calloc(size_t count, size_t size) {
|
||||
}
|
||||
|
||||
char* strdup(const char* s) {
|
||||
// arg s marked as non-null, so we need hack to check for NULL
|
||||
furi_check(((uint32_t)s << 2) != 0);
|
||||
const char* s_null = s;
|
||||
if(s_null == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
size_t siz = strlen(s) + 1;
|
||||
char* y = pvPortMalloc(siz);
|
||||
|
||||
Reference in New Issue
Block a user