summaryrefslogtreecommitdiffstats
path: root/src/file_zip.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_zip.c
parent0ecfeb2d7a2d2a4b5bb315fdd2b3303d300def78 (diff)
PhotoRec: remove useless file_recovery NULL check
Diffstat (limited to 'src/file_zip.c')
-rw-r--r--src/file_zip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_zip.c b/src/file_zip.c
index 68fc487..8fef36f 100644
--- a/src/file_zip.c
+++ b/src/file_zip.c
@@ -826,7 +826,7 @@ static int header_check_zip(const unsigned char *buffer, const unsigned int buff
{
const zip_file_entry_t *file=(const zip_file_entry_t *)&buffer[4];
const unsigned int len=le16(file->filename_length);
- if(file_recovery!=NULL && file_recovery->file_stat!=NULL &&
+ if(file_recovery->file_stat!=NULL &&
file_recovery->file_stat->file_hint==&file_hint_doc &&
(strcmp(file_recovery->extension,"doc")==0 ||
strcmp(file_recovery->extension,"psmodel")==0)
@@ -834,7 +834,7 @@ static int header_check_zip(const unsigned char *buffer, const unsigned int buff
return 0;
/* A zip file begins by ZIP_FILE_ENTRY, this signature can also be
* found for each compressed file */
- if(file_recovery!=NULL && file_recovery->file_stat!=NULL &&
+ if(file_recovery->file_stat!=NULL &&
file_recovery->file_stat->file_hint==&file_hint_zip &&
safe_header_only==0)
return 0;