summaryrefslogtreecommitdiffstats
path: root/src/psearchn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-01-25 13:34:21 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-01-25 13:34:21 +0100
commit6690fdd45ff41ae44e20ca72dfb2afab39010894 (patch)
tree09b030e2a7b2ae066af0e4c623491ad38624d4ec /src/psearchn.c
parent88d86389d5ba46bebb353e81f3ed617b9864b7c9 (diff)
Avoid additional NULL pointer derefence when localtime() failed
Diffstat (limited to 'src/psearchn.c')
-rw-r--r--src/psearchn.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/psearchn.c b/src/psearchn.c
index 581c1a8..5a4721f 100644
--- a/src/psearchn.c
+++ b/src/psearchn.c
@@ -406,10 +406,7 @@ pstatus_t photorec_aux(struct ph_param *params, const struct ph_options *options
#ifdef HAVE_NCURSES
ind_stop=photorec_progressbar(stdscr, params->pass, params, offset, current_time);
#endif
- if(file_recovery.file_stat!=NULL)
- params->offset=file_recovery.location.start;
- else
- params->offset=offset;
+ params->offset=offset;
if(current_time >= next_checkpoint)
{
/* Save current progress */