aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_type.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2005-01-27 01:47:31 +0000
committerRichard Levitte <levitte@openssl.org>2005-01-27 01:47:31 +0000
commita229e3038ea0200c3ff035cb96cf01071eb7b6ad (patch)
treec5910421ce2c6eb5c1bee9b610312e35200d7b50 /crypto/asn1/a_type.c
parent4aca9297dcabc76cbe8ca2bb47dea25183f23830 (diff)
downloadopenssl-a229e3038ea0200c3ff035cb96cf01071eb7b6ad.tar.gz
Get rid if the annoying warning
Diffstat (limited to 'crypto/asn1/a_type.c')
-rw-r--r--crypto/asn1/a_type.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/asn1/a_type.c b/crypto/asn1/a_type.c
index fe3fcd40b0..2292d49b93 100644
--- a/crypto/asn1/a_type.c
+++ b/crypto/asn1/a_type.c
@@ -71,7 +71,10 @@ int ASN1_TYPE_get(ASN1_TYPE *a)
void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value)
{
if (a->value.ptr != NULL)
- ASN1_primitive_free((ASN1_VALUE **)&a, NULL);
+ {
+ ASN1_TYPE **tmp_a = &a;
+ ASN1_primitive_free((ASN1_VALUE **)tmp_a, NULL);
+ }
a->type=type;
a->value.ptr=value;
}