summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-06-18 23:02:44 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-06-18 23:02:44 +0200
commit50d94c713c627fb96661e363cd87bb7d607f3c3d (patch)
treeb069add43f832b08ea2ed0f64a81e0df90174625
parent93a3b63ea5cd1fbbabe9bac2d0ac94f079cae5b7 (diff)
zeroed file_recovery structure to get easier to read stack trace under gdb
-rw-r--r--src/phrecn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/phrecn.c b/src/phrecn.c
index fd0dc74..6682552 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -203,6 +203,7 @@ static int photorec_aux(struct ph_param *params, const struct ph_options *option
const unsigned int read_size=(blocksize>65536?blocksize:65536);
alloc_data_t *current_search_space;
file_recovery_t file_recovery;
+ memset(&file_recovery, 0, sizeof(file_recovery));
reset_file_recovery(&file_recovery);
file_recovery.blocksize=blocksize;
buffer_size=blocksize + READ_SIZE;