PhotoRec: stricter check in src/file_pdf.c
This commit is contained in:
parent
bb3993d045
commit
8fa5b43d03
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue