summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-23 09:39:49 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-23 09:39:49 +0100
commitec008afd281367757fe2f05c844cddfc8cabd7f8 (patch)
tree1e0cf26e3e1415321cc1e411f1afa99f11ebb628 /lib
parent33cfcbd32ef49429e2b3fdf945c83f8d7b9295dd (diff)
downloadlibtasn1-ec008afd281367757fe2f05c844cddfc8cabd7f8.tar.gz
libtasn1-ec008afd281367757fe2f05c844cddfc8cabd7f8.tar.bz2
libtasn1-ec008afd281367757fe2f05c844cddfc8cabd7f8.zip
init strings
Diffstat (limited to 'lib')
-rw-r--r--lib/ASN1.c4
-rw-r--r--lib/ASN1.y4
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[];