PhotoRec: stricter check in src/file_pdf.c

This commit is contained in:
Christophe Grenier 2019-12-28 11:58:59 +01:00
parent bb3993d045
commit 8fa5b43d03

View file

@ -85,7 +85,7 @@ static void file_rename_pdf(file_recovery_t *file_recovery)
#else
offset=ftell(handle);
#endif
if(offset < 0)
if(offset <= 0)
{
fclose(handle);
return;