summaryrefslogtreecommitdiffstats
path: root/src/file_dad.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-10-05 21:10:05 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2014-10-05 21:10:05 +0200
commitf83141b780f3d6ea62501f7ab1d38ce00d2b9cf2 (patch)
tree1ca518cfd635ce4dccb7f8380255169963c58854 /src/file_dad.c
parent0ecfeb2d7a2d2a4b5bb315fdd2b3303d300def78 (diff)
PhotoRec: remove useless file_recovery NULL check
Diffstat (limited to 'src/file_dad.c')
-rw-r--r--src/file_dad.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/file_dad.c b/src/file_dad.c
index ba3f573..2f4fa0e 100644
--- a/src/file_dad.c
+++ b/src/file_dad.c
@@ -74,8 +74,7 @@ static data_check_t data_check_dad(const unsigned char *buffer, const unsigned i
static int header_check_dad(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new)
{
const struct dad_header *dad=(const struct dad_header *)buffer;
- if(file_recovery!=NULL &&
- file_recovery->file_stat!=NULL &&
+ if(file_recovery->file_stat!=NULL &&
file_recovery->file_stat->file_hint==&file_hint_dad &&
(file_recovery->calculated_file_size==file_recovery->file_size ||
file_recovery->blocksize < 16))