mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
Merge pull request #1735 from Links2004/master
fix umm_malloc null ptr.
This commit is contained in:
@ -971,6 +971,10 @@ void ICACHE_FLASH_ATTR *umm_info( void *ptr, int force ) {
|
|||||||
|
|
||||||
unsigned short int blockNo = 0;
|
unsigned short int blockNo = 0;
|
||||||
|
|
||||||
|
if (umm_heap == NULL) {
|
||||||
|
umm_init();
|
||||||
|
}
|
||||||
|
|
||||||
/* Protect the critical section... */
|
/* Protect the critical section... */
|
||||||
UMM_CRITICAL_ENTRY();
|
UMM_CRITICAL_ENTRY();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user