From 437bee123c27c49cbdb14dc8baeaaa46c0998d22 Mon Sep 17 00:00:00 2001 From: weitianhua Date: Sat, 14 Mar 2020 14:52:01 +0800 Subject: [PATCH] Initialize mem_start and mem_end --- components/bt/bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/bt.c b/components/bt/bt.c index e6b41bcbac..aa44c5895e 100644 --- a/components/bt/bt.c +++ b/components/bt/bt.c @@ -1022,7 +1022,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;