diff options
author | Jean-Louis Thekekara <jean-louis.thekekara@openwide.fr> | 2014-03-25 14:16:39 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-03-28 14:41:51 +0100 |
commit | f71df370925373a2e69aafa6b0b16916eb7ad1ef (patch) | |
tree | 894fed825328971f8c0820e64b6ef85c1f13ab7a /lib | |
parent | 0b1cce8661cbdbb17d2c53ea314d442567bc508d (diff) | |
download | libtasn1-f71df370925373a2e69aafa6b0b16916eb7ad1ef.tar.gz libtasn1-f71df370925373a2e69aafa6b0b16916eb7ad1ef.tar.bz2 libtasn1-f71df370925373a2e69aafa6b0b16916eb7ad1ef.zip |
extract_tag_der_recursive: fix compilation errors
Fix the following errors introduced by extract_tag_der_recursive usage:
decoding.c: In function 'extract_tag_der_recursive':
decoding.c:560:5: error: 'ris' may be used uninitialized in this function [-Werror=maybe-uninitialized]
decoding.c: In function 'asn1_der_decoding_startEnd':
decoding.c:2192:40: error: unused variable 'p3' [-Werror=unused-variable]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/decoding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/decoding.c b/lib/decoding.c index dee7a9f..e9af339 100644 --- a/lib/decoding.c +++ b/lib/decoding.c @@ -557,7 +557,7 @@ extract_tag_der_recursive(asn1_node node, const unsigned char *der, int der_len, int *ret_len) { asn1_node p; -int ris; +int ris = ASN1_DER_ERROR; if (type_field (node->type) == ASN1_ETYPE_CHOICE) { @@ -2189,7 +2189,7 @@ int asn1_der_decoding_startEnd (asn1_node element, const void *ider, int len, const char *name_element, int *start, int *end) { - asn1_node node, node_to_find, p, p2, p3; + asn1_node node, node_to_find, p, p2; int counter, len2, len3, len4, move, ris; unsigned char class; unsigned long tag; |