diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-10-06 14:05:43 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-10-06 14:05:43 +0200 |
commit | 40e7731b1ff6b250744b76216945308dc7146213 (patch) | |
tree | ff763099b08d482d5e7a25f88d2f002817a1e086 /lib | |
parent | 6704bb1e91e28be6f46e6948c82de16604d765b0 (diff) | |
download | libtasn1-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.c | 3 |
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; |