summaryrefslogtreecommitdiffstats
path: root/src/img4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/img4.c')
-rw-r--r--src/img4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/img4.c b/src/img4.c
index c088926..7ce3532 100644
--- a/src/img4.c
+++ b/src/img4.c
@@ -226,6 +226,7 @@ static const unsigned char *asn1_find_element(unsigned int index, unsigned char
unsigned char el_type = 0;
unsigned char el_size = 0;
unsigned int off = 0;
+ int i;
// verify data integrity
if (data[off++] != (ASN1_CONSTRUCTED | ASN1_SEQUENCE))
@@ -250,7 +251,7 @@ static const unsigned char *asn1_find_element(unsigned int index, unsigned char
}
// find the element we are searching
- for (int i = 0; i <= index; i++) {
+ for (i = 0; i <= index; i++) {
off += asn1_get_element(&data[off], &el_type, &el_size);
if (i == index)
break;