init strings
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 23 Nov 2012 08:39:49 +0000 (09:39 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 23 Nov 2012 08:39:49 +0000 (09:39 +0100)
lib/ASN1.c
lib/ASN1.y

index c70e1a4..430e2ff 100644 (file)
@@ -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[];
index 1f85cd6..70e39a3 100644 (file)
@@ -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[];