Fix mem_start uninitialized error when compiler optimization performance enabled

pull/4944/head
weitianhua 2020-03-12 15:07:03 +08:00
rodzic 640c7c5107
commit b86f4d4f00
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -972,7 +972,7 @@ static esp_err_t try_heap_caps_add_region(intptr_t start, intptr_t end)
esp_err_t esp_bt_controller_mem_release(esp_bt_mode_t mode)
{
bool update = true;
intptr_t mem_start, mem_end;
intptr_t mem_start=(intptr_t) NULL, mem_end=(intptr_t) NULL;
if (btdm_controller_status != ESP_BT_CONTROLLER_STATUS_IDLE) {
return ESP_ERR_INVALID_STATE;