mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
parent
c8685c2002
commit
ce8b52617e
@ -64,7 +64,7 @@ esp_err_t tcpip_adapter_start(tcpip_adapter_if_t tcpip_if, uint8_t *mac, tcpip_a
|
||||
}
|
||||
|
||||
if (esp_netif[tcpip_if] == NULL) {
|
||||
esp_netif[tcpip_if] = malloc(sizeof(struct netif));
|
||||
esp_netif[tcpip_if] = calloc(1, sizeof(*esp_netif[tcpip_if]));
|
||||
if (esp_netif[tcpip_if] == NULL) {
|
||||
return ESP_ERR_NO_MEM;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user