summaryrefslogtreecommitdiffstats
path: root/src/qphotorec.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/qphotorec.cpp
parentb5ec147d4663cf73fba8c1fa082aedfda4c09dd4 (diff)
Use TD_INIT_LIST_HEAD() function instead of TD_LIST_HEAD_INIT() static initializer
Diffstat (limited to 'src/qphotorec.cpp')
-rw-r--r--src/qphotorec.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/qphotorec.cpp b/src/qphotorec.cpp
index 94ac8f9..9e7a465 100644
--- a/src/qphotorec.cpp
+++ b/src/qphotorec.cpp
@@ -891,13 +891,8 @@ void QPhotorec::qphotorec_search()
{
if(selected_disk==NULL || selected_partition==NULL)
return;
- static alloc_data_t list_search_space={
- .list = TD_LIST_HEAD_INIT(list_search_space.list),
- .start=0,
- .end=0,
- .file_stat=NULL,
- .data=0
- };
+ alloc_data_t list_search_space;
+ TD_INIT_LIST_HEAD(&list_search_space.list);
QByteArray byteArray = (directoryLabel->text() + "/" + DEFAULT_RECUP_DIR).toUtf8();
params->recup_dir=strdup(byteArray.constData());