summaryrefslogtreecommitdiffstats
path: root/src/file_jpg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-04-14 11:13:55 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-04-14 11:13:55 +0200
commit23f85f95311eebfa0f6c9c7c1cf75fd67084d48e (patch)
tree7937b345b20df13936e035f1341aaaa67a902dc0 /src/file_jpg.c
parent7d29ee5f1ef40171054886beefe39527f144dbc2 (diff)
code cleanup: remove unused but set variables
Diffstat (limited to 'src/file_jpg.c')
-rw-r--r--src/file_jpg.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/file_jpg.c b/src/file_jpg.c
index f3f5d8f..f6272be 100644
--- a/src/file_jpg.c
+++ b/src/file_jpg.c
@@ -1174,8 +1174,9 @@ static uint64_t jpg_check_structure(file_recovery_t *file_recovery, const unsign
{
unsigned int j=thumb_offset+2;
unsigned int thumb_sos_found=0;
- unsigned int j_old;
- j_old=j;
+#ifdef DEBUG_JPEG
+ unsigned int j_old=j;
+#endif
if(buffer[thumb_offset]!=0xff)
{
file_recovery->offset_error=thumb_offset;
@@ -1239,7 +1240,9 @@ static uint64_t jpg_check_structure(file_recovery_t *file_recovery, const unsign
}
if(file_recovery->offset_ok<j)
file_recovery->offset_ok=j;
+#ifdef DEBUG_JPEG
j_old=j;
+#endif
j+=2+(buffer[j+2]<<8)+buffer[j+3];
}
if(thumb_sos_found>0 && extract_thumb>0