From: zhiweijian Date: Wed, 28 Feb 2018 08:44:05 +0000 (+0800) Subject: Component/bt: fix build ble server error with BT_BLE_DYNAMIC_ENV_MEMORY option X-Git-Tag: v3.1-beta1~378^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e6f52fb6f6a1c225b0e5c7a9fa99d49f102d368;p=esp-idf Component/bt: fix build ble server error with BT_BLE_DYNAMIC_ENV_MEMORY option --- diff --git a/components/bt/bluedroid/main/bte_init.c b/components/bt/bluedroid/main/bte_init.c index 6d317fd4ea..87605825ff 100644 --- a/components/bt/bluedroid/main/bte_init.c +++ b/components/bt/bluedroid/main/bte_init.c @@ -269,8 +269,6 @@ void BTE_InitStack(void) if ((bta_gatts_cb_ptr = (tBTA_GATTS_CB *)osi_malloc(sizeof(tBTA_GATTS_CB))) == NULL) { return; } - memset((void *)bta_gattc_cb_ptr, 0, sizeof(tBTA_GATTC_CB)); - // memset((void *)bta_gatts_cb_ptr, 0, sizeof(tBTA_GATTS_CB)); #endif #if BTA_PAN_INCLUDED==TRUE