Skip to content

Commit

Permalink
fix(spi_nand_flash): correct calloc call arguments for GCC14 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Sep 17, 2024
1 parent 4009e52 commit 46d3580
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spi_nand_flash/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "0.3.0"
version: "0.3.1"
description: Driver for accessing SPI NAND Flash
url: https://github.com/espressif/idf-extra-components/tree/master/spi_nand_flash
issues: https://github.com/espressif/idf-extra-components/issues
Expand Down
2 changes: 1 addition & 1 deletion spi_nand_flash/src/nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ esp_err_t spi_nand_flash_init_device(spi_nand_flash_config_t *config, spi_nand_f
config->gc_factor = 45;
}

*handle = calloc(sizeof(spi_nand_flash_device_t), 1);
*handle = calloc(1, sizeof(spi_nand_flash_device_t));
if (*handle == NULL) {
return ESP_ERR_NO_MEM;
}
Expand Down

0 comments on commit 46d3580

Please sign in to comment.