mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-08 05:48:36 +00:00
fix(build): fix calloc warnings
This commit is contained in:
@@ -820,7 +820,7 @@ void esp_phy_load_cal_and_init(void)
|
||||
#endif
|
||||
|
||||
esp_phy_calibration_data_t* cal_data =
|
||||
(esp_phy_calibration_data_t*) calloc(sizeof(esp_phy_calibration_data_t), 1);
|
||||
(esp_phy_calibration_data_t*) calloc(1, sizeof(esp_phy_calibration_data_t));
|
||||
if (cal_data == NULL) {
|
||||
ESP_LOGE(TAG, "failed to allocate memory for RF calibration data");
|
||||
abort();
|
||||
|
Reference in New Issue
Block a user