Преглед изворни кода

component/bt : fix a malloc bzero of blufi

Tian Hao пре 8 година
родитељ
комит
dff95aed65
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      components/bt/bluedroid/btc/profile/esp/blufi/blufi_prf.c

+ 1 - 1
components/bt/bluedroid/btc/profile/esp/blufi/blufi_prf.c

@@ -808,7 +808,7 @@ void btc_blufi_call_deep_copy(btc_msg_t *msg, void *p_dest, void *p_src)
             return;
             return;
         }
         }
 
 
-        dst->wifi_conn_report.extra_info = osi_malloc(sizeof(esp_blufi_extra_info_t));
+        dst->wifi_conn_report.extra_info = osi_calloc(sizeof(esp_blufi_extra_info_t));
         if (dst->wifi_conn_report.extra_info == NULL) {
         if (dst->wifi_conn_report.extra_info == NULL) {
             return;
             return;
         }
         }