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
|
#else
|
||||||
offset=ftell(handle);
|
offset=ftell(handle);
|
||||||
#endif
|
#endif
|
||||||
if(offset < 0)
|
if(offset <= 0)
|
||||||
{
|
{
|
||||||
fclose(handle);
|
fclose(handle);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue