summaryrefslogtreecommitdiffstats
path: root/src/file_jpg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_jpg.c')
-rw-r--r--src/file_jpg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_jpg.c b/src/file_jpg.c
index a5ea516..66e11de 100644
--- a/src/file_jpg.c
+++ b/src/file_jpg.c
@@ -487,11 +487,11 @@ static void jpg_check_structure(file_recovery_t *file_recovery, const unsigned i
{
FILE* infile=file_recovery->handle;
unsigned char buffer[40*8192];
- unsigned int offset=2;
int nbytes;
fseek(infile, 0, SEEK_SET);
if((nbytes=fread(&buffer, 1, sizeof(buffer), infile))>0)
{
+ unsigned int offset=2;
while(offset < nbytes)
{
const unsigned int i=offset;