From ec008afd281367757fe2f05c844cddfc8cabd7f8 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 23 Nov 2012 09:39:49 +0100 Subject: [PATCH] init strings --- lib/ASN1.c | 4 ++-- lib/ASN1.y | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ASN1.c b/lib/ASN1.c index c70e1a4..430e2ff 100644 --- a/lib/ASN1.c +++ b/lib/ASN1.c @@ -119,8 +119,8 @@ static unsigned int line_number; /* line number describing the parser position inside the file */ static char last_error[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = ""; -static char last_error_token[ASN1_MAX_NAME_SIZE+1]; /* used when expected errors occur */ -static char last_token[ASN1_MAX_NAME_SIZE+1]; /* last token find in the file +static char last_error_token[ASN1_MAX_NAME_SIZE+1] = ""; /* used when expected errors occur */ +static char last_token[ASN1_MAX_NAME_SIZE+1] = ""; /* last token find in the file to parse before the 'parse error' */ extern char _asn1_identifierMissing[]; diff --git a/lib/ASN1.y b/lib/ASN1.y index 1f85cd6..70e39a3 100644 --- a/lib/ASN1.y +++ b/lib/ASN1.y @@ -42,8 +42,8 @@ static unsigned int line_number; /* line number describing the parser position inside the file */ static char last_error[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = ""; -static char last_error_token[ASN1_MAX_NAME_SIZE+1]; /* used when expected errors occur */ -static char last_token[ASN1_MAX_NAME_SIZE+1]; /* last token find in the file +static char last_error_token[ASN1_MAX_NAME_SIZE+1] = ""; /* used when expected errors occur */ +static char last_token[ASN1_MAX_NAME_SIZE+1] = ""; /* last token find in the file to parse before the 'parse error' */ extern char _asn1_identifierMissing[]; -- 2.7.4