summaryrefslogtreecommitdiffstats
path: root/src/file_ogg.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_ogg.c
parent0ecfeb2d7a2d2a4b5bb315fdd2b3303d300def78 (diff)
PhotoRec: remove useless file_recovery NULL check
Diffstat (limited to 'src/file_ogg.c')
-rw-r--r--src/file_ogg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_ogg.c b/src/file_ogg.c
index 7893bbb..b629b71 100644
--- a/src/file_ogg.c
+++ b/src/file_ogg.c
@@ -53,7 +53,7 @@ static int header_check_ogg(const unsigned char *buffer, const unsigned int buff
/* http://en.wikipedia.org/wiki/Ogg#File_format */
/* Return if not Beginning Of Stream and already saving the file */
if((buffer[5]&0x02)!=0x02 &&
- file_recovery!=NULL && file_recovery->file_stat!=NULL &&
+ file_recovery->file_stat!=NULL &&
file_recovery->file_stat->file_hint==&file_hint_ogg &&
(file_recovery->blocksize < 27+255 ||
file_recovery->calculated_file_size == file_recovery->file_size))