summaryrefslogtreecommitdiffstats
path: root/src/file_jpg.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_jpg.c
parent0ecfeb2d7a2d2a4b5bb315fdd2b3303d300def78 (diff)
PhotoRec: remove useless file_recovery NULL check
Diffstat (limited to 'src/file_jpg.c')
-rw-r--r--src/file_jpg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_jpg.c b/src/file_jpg.c
index e74a241..1f6c573 100644
--- a/src/file_jpg.c
+++ b/src/file_jpg.c
@@ -366,7 +366,7 @@ static int header_check_jpg(const unsigned char *buffer, const unsigned int buff
{
unsigned int i=2;
time_t jpg_time=0;
- if(file_recovery!=NULL && file_recovery->file_stat!=NULL)
+ if(file_recovery->file_stat!=NULL)
{
static const unsigned char jpg_header_app0_avi[0x0c]= {
0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 'A', 'V', 'I', '1', 0x00, 0x00