summaryrefslogtreecommitdiff
path: root/lib/ASN1.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ASN1.c')
-rw-r--r--lib/ASN1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ASN1.c b/lib/ASN1.c
index be533ce..1cbb7b0 100644
--- a/lib/ASN1.c
+++ b/lib/ASN1.c
@@ -2384,6 +2384,7 @@ _asn1_yylex()
{
int c,counter=0,k,lastc;
char string[ASN1_MAX_NAME_SIZE+1]; /* will contain the next token */
+ size_t i;
while(1)
{
@@ -2450,8 +2451,8 @@ _asn1_yylex()
}
/* Is STRING a keyword? */
- for(k=0;k<(sizeof(key_word)/sizeof(char*));k++)
- if(!strcmp(string,key_word[k])) return key_word_token[k];
+ for(i=0;i<(sizeof(key_word)/sizeof(char*));i++)
+ if(!strcmp(string,key_word[i])) return key_word_token[i];
/* STRING is an IDENTIFIER */
strcpy(yylval.str,string);