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;