summaryrefslogtreecommitdiffstats
path: root/src/qpsearch.cpp
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-06-13 11:58:44 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-06-13 11:58:44 +0200
commit35ddcde3552812ec97bb39c9cfb3fe7a3eee5efd (patch)
tree4f76664e4b7bbc312c0e212509ec58b11d05c4fc /src/qpsearch.cpp
parent1ebca60563ede40843a9d451ef78413f35587d39 (diff)
PhotoRec: Remove min_header_distance from file_hint_t structure (code cleanup)
Diffstat (limited to 'src/qpsearch.cpp')
-rw-r--r--src/qpsearch.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/qpsearch.cpp b/src/qpsearch.cpp
index cc88f7d..39307e8 100644
--- a/src/qpsearch.cpp
+++ b/src/qpsearch.cpp
@@ -164,12 +164,7 @@ pstatus_t QPhotorec::photorec_aux(alloc_data_t *list_search_space)
{
file_recovery_t file_recovery_new;
file_recovery_new.blocksize=blocksize;
- if(file_recovery.file_stat!=NULL &&
- file_recovery.file_stat->file_hint->min_header_distance > 0 &&
- file_recovery.file_size<=file_recovery.file_stat->file_hint->min_header_distance)
- {
- }
- else if(file_recovery.file_stat!=NULL && file_recovery.file_stat->file_hint==&file_hint_tar &&
+ if(file_recovery.file_stat!=NULL && file_recovery.file_stat->file_hint==&file_hint_tar &&
header_check_tar(buffer-0x200,0x200,0,&file_recovery,&file_recovery_new))
{ /* Currently saving a tar, do not check the data for know header */
if(options->verbose > 1)