summaryrefslogtreecommitdiffstats
path: root/src/qpsearch.cpp
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/qpsearch.cpp
parentb5ec147d4663cf73fba8c1fa082aedfda4c09dd4 (diff)
Use TD_INIT_LIST_HEAD() function instead of TD_LIST_HEAD_INIT() static initializer
Diffstat (limited to 'src/qpsearch.cpp')
-rw-r--r--src/qpsearch.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qpsearch.cpp b/src/qpsearch.cpp
index 9b0d258..753427a 100644
--- a/src/qpsearch.cpp
+++ b/src/qpsearch.cpp
@@ -220,10 +220,8 @@ pstatus_t QPhotorec::photorec_aux(alloc_data_t *list_search_space)
if(file_recovery.file_stat->file_hint==&file_hint_dir && options->verbose > 0)
{ /* FAT directory found, list the file */
- file_info_t dir_list = {
- .list = TD_LIST_HEAD_INIT(dir_list.list),
- .name = NULL
- };
+ file_info_t dir_list;
+ TD_INIT_LIST_HEAD(&dir_list.list);
dir_fat_aux(buffer, read_size, 0, &dir_list);
if(!td_list_empty(&dir_list.list))
{