summaryrefslogtreecommitdiffstats
path: root/src/sessionp.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-07-21 20:43:01 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-07-21 20:43:01 +0200
commit23cbba29c8183850c00e8582fc5b6b3b47e50dc4 (patch)
tree0d6b47f316ed03f8c5af823230023be0262293f4 /src/sessionp.c
parenta217bf73ff63bde0b73acfb6232631b7e06e3d8e (diff)
PhotoRec: fix bug introduce by commit a217bf73ff63bde0b73acfb6232631b7e06e3d8e
Diffstat (limited to 'src/sessionp.c')
-rw-r--r--src/sessionp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sessionp.c b/src/sessionp.c
index 40d0663..bbf8836 100644
--- a/src/sessionp.c
+++ b/src/sessionp.c
@@ -161,10 +161,6 @@ int session_load(char **cmd_device, char **current_cmd, alloc_data_t *list_free_
int session_save(alloc_data_t *list_free_space, disk_t *disk, const partition_t *partition, const file_enable_t *files_enable, const unsigned int blocksize, const struct ph_options *options, const unsigned int carve_free_space_only)
{
FILE *f_session;
- if(options->verbose>1)
- {
- log_trace("session_save\n");
- }
f_session=fopen(SESSION_FILENAME,"wb");
if(!f_session)
{
@@ -175,6 +171,10 @@ int session_save(alloc_data_t *list_free_space, disk_t *disk, const partition_t
{
struct td_list_head *free_walker = NULL;
unsigned int i;
+ if(options->verbose>1)
+ {
+ log_trace("session_save\n");
+ }
fprintf(f_session,"#%u\n%s %s,%u,blocksize,%u,fileopt,",
(unsigned int)time(NULL), disk->device, disk->arch->part_name_option, partition->order, blocksize);
for(i=0;files_enable[i].file_hint!=NULL;i++)