summaryrefslogtreecommitdiffstats
path: root/src/fat.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-04-10 19:20:53 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-04-10 19:20:53 +0200
commit4968f66059e9ca6d8c48b55460a73bfbc72fd1aa (patch)
tree17fea48cbb7ccf9f6eb54a5557e78129e5cfa0a0 /src/fat.c
parentb5ec147d4663cf73fba8c1fa082aedfda4c09dd4 (diff)
Use TD_INIT_LIST_HEAD() function instead of TD_LIST_HEAD_INIT() static initializer
Diffstat (limited to 'src/fat.c')
-rw-r--r--src/fat.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fat.c b/src/fat.c
index 912d125..0e0516f 100644
--- a/src/fat.c
+++ b/src/fat.c
@@ -765,13 +765,11 @@ static int fat_has_EFI_entry(disk_t *disk, partition_t *partition, const int ver
{
dir_data_t dir_data;
struct td_list_head *file_walker = NULL;
- file_info_t dir_list = {
- .list = TD_LIST_HEAD_INIT(dir_list.list),
- .name = NULL
- };
+ file_info_t dir_list;
const dir_partition_t res=dir_partition_fat_init(disk, partition, &dir_data, verbose);
if(res!=DIR_PART_OK)
return 0;
+ TD_INIT_LIST_HEAD(&dir_list.list);
dir_data.get_dir(disk, partition, &dir_data, 0, &dir_list);
td_list_for_each(file_walker, &dir_list.list)
{