kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/btdm_fail_to_config_url_in_eir' into 'master'
components/bt: Fix fail to config URL in EIR See merge request idf/esp-idf!5352pull/3717/head
commit
45364fe54e
|
@ -694,7 +694,7 @@ void bta_dm_config_eir (tBTA_DM_MSG *p_data)
|
|||
}
|
||||
if (config_eir->eir_url) {
|
||||
p_bta_dm_eir_cfg->bta_dm_eir_url = osi_malloc(config_eir->eir_url_len);
|
||||
if (p_bta_dm_eir_cfg->bta_dm_eir_url == NULL) {
|
||||
if (p_bta_dm_eir_cfg->bta_dm_eir_url) {
|
||||
memcpy(p_bta_dm_eir_cfg->bta_dm_eir_url, config_eir->eir_url, config_eir->eir_url_len);
|
||||
} else {
|
||||
APPL_TRACE_ERROR("%s, malloc failed.", __func__);
|
||||
|
|
Ładowanie…
Reference in New Issue