summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-10-06 14:05:43 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-10-06 14:05:43 +0200
commit40e7731b1ff6b250744b76216945308dc7146213 (patch)
treeff763099b08d482d5e7a25f88d2f002817a1e086 /lib
parent6704bb1e91e28be6f46e6948c82de16604d765b0 (diff)
downloadlibtasn1-40e7731b1ff6b250744b76216945308dc7146213.tar.gz
libtasn1-40e7731b1ff6b250744b76216945308dc7146213.tar.bz2
libtasn1-40e7731b1ff6b250744b76216945308dc7146213.zip
Set the error description to null initialy.
Diffstat (limited to 'lib')
-rw-r--r--lib/decoding.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/decoding.c b/lib/decoding.c
index df86f85..3714979 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -833,6 +833,9 @@ asn1_der_decoding (asn_node_t * element, const void *ider, int len,
node = *element;
+ if (errorDescription != NULL)
+ errorDescription[0] = 0;
+
if (node == NULL)
return ASN1_ELEMENT_NOT_FOUND;