summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-03-25 14:38:12 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-03-25 14:38:12 +0100
commit7a255f731a9cfe87f44fc9c4cc44ebce93997efc (patch)
treef90fb0f202f47578ec6b0b83c648e54d3329c33b
parent2159f9ccabecf6279dc5e8391ee5060d25a479a5 (diff)
PhotoRec: Call reset_list_file_enable() in main() instead of file_options_load_aux()
-rw-r--r--src/phcfg.c1
-rw-r--r--src/phmain.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/phcfg.c b/src/phcfg.c
index 34640d1..06297ac 100644
--- a/src/phcfg.c
+++ b/src/phcfg.c
@@ -228,7 +228,6 @@ int file_options_load(file_enable_t *files_enable)
{
FILE *handle;
char buffer[512];
- reset_list_file_enable(files_enable);
handle=file_options_load_aux();
if(handle==NULL)
return -1;
diff --git a/src/phmain.c b/src/phmain.c
index d9ffbf1..341020b 100644
--- a/src/phmain.c
+++ b/src/phmain.c
@@ -346,6 +346,7 @@ int main( int argc, char **argv )
disk->description(disk), disk->sector_size, disk->model);
}
log_info("\n");
+ reset_list_file_enable(list_file_enable);
file_options_load(list_file_enable);
use_sudo=do_curses_photorec(verbose, recup_dir, list_disk, list_file_enable, cmd_device, &cmd_run);
#ifdef HAVE_NCURSES