summaryrefslogtreecommitdiffstats
path: root/src/phrecn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-11-15 07:16:09 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-11-15 07:16:09 +0100
commit681a2531a2229c23e10275f8ee566201a729a3e1 (patch)
treecccf7cc7b2cc1f36d53a08f5025414ce349b3d56 /src/phrecn.c
parente97359ef26949b69100d3c180f9b2852b706b9b2 (diff)
Use "./configure --disable-dfxml" to disable DFXML feature
Diffstat (limited to 'src/phrecn.c')
-rw-r--r--src/phrecn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/phrecn.c b/src/phrecn.c
index cf4125b..c92bbbd 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -825,9 +825,11 @@ int photorec(struct ph_param *params, const struct ph_options *options, alloc_da
/* make the first recup_dir */
params->dir_num=photorec_mkdir(params->recup_dir, params->dir_num);
+#ifdef ENABLE_DFXML
/* Open the XML output file */
xml_open(params->recup_dir, params->dir_num);
xml_setup(params->disk, params->partition);
+#endif
for(params->pass=0; params->status!=STATUS_QUIT; params->pass++)
{
@@ -1069,8 +1071,10 @@ int photorec(struct ph_param *params, const struct ph_options *options, alloc_da
free(params->file_stats);
params->file_stats=NULL;
free_header_check();
+#ifdef ENABLE_DFXML
xml_shutdown();
xml_close();
+#endif
return 0;
}