summaryrefslogtreecommitdiffstats
path: root/src/file_pdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_pdf.c')
-rw-r--r--src/file_pdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_pdf.c b/src/file_pdf.c
index 97dd4347..13115398 100644
--- a/src/file_pdf.c
+++ b/src/file_pdf.c
@@ -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;