summaryrefslogtreecommitdiffstats
path: root/src/dirn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-05-14 18:59:09 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-05-14 18:59:09 +0200
commit1437cdbdc0e7cae6a932eca0aecb26848ee609f5 (patch)
tree0fc7b64e0f914d443859d2f8e2d4c42b77de7d49 /src/dirn.c
parent1a9ce501a7d69c434849782a3b19f89615bf6e1a (diff)
Fix for commit 4968f66059e9ca6d8c48b55460a73bfbc72fd1aa
Diffstat (limited to 'src/dirn.c')
-rw-r--r--src/dirn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dirn.c b/src/dirn.c
index 1bf7f5b..c10045f 100644
--- a/src/dirn.c
+++ b/src/dirn.c
@@ -660,10 +660,10 @@ static int copy_dir(WINDOW *window, disk_t *disk, const partition_t *partition,
static unsigned int dir_nbr=0;
static unsigned long int inode_known[MAX_DIR_NBR];
file_info_t dir_list;
- TD_INIT_LIST_HEAD(&dir_list.list);
const unsigned int current_directory_namelength=strlen(dir_data->current_directory);
char *dir_name;
struct td_list_head *file_walker = NULL;
+ TD_INIT_LIST_HEAD(&dir_list.list);
if(dir_data->get_dir==NULL || dir_data->copy_file==NULL)
return 0;
inode_known[dir_nbr++]=dir->st_ino;