summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/x_name.c
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2000-05-31 17:41:34 +0000
committerGeoff Thorpe <geoff@openssl.org>2000-05-31 17:41:34 +0000
commita4e31088ce118d1e47d3c0b7dee9e8d3769e71bf (patch)
treee8177762f60137a746fc5bf53eeb420b2c8da116 /crypto/asn1/x_name.c
parente20d7d71677c6d56f9e486148a0d33cb639765eb (diff)
sk_***_new_null() seems to be there to avoid exactly this sort of thing
which is a cast between NULL and a function pointer.
Diffstat (limited to 'crypto/asn1/x_name.c')
-rw-r--r--crypto/asn1/x_name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/x_name.c b/crypto/asn1/x_name.c
index 64baf5719d..62e0ed0fc7 100644
--- a/crypto/asn1/x_name.c
+++ b/crypto/asn1/x_name.c
@@ -217,7 +217,7 @@ X509_NAME *X509_NAME_new(void)
ASN1_CTX c;
M_ASN1_New_Malloc(ret,X509_NAME);
- if ((ret->entries=sk_X509_NAME_ENTRY_new(NULL)) == NULL)
+ if ((ret->entries=sk_X509_NAME_ENTRY_new_null()) == NULL)
{ c.line=__LINE__; goto err2; }
M_ASN1_New(ret->bytes,BUF_MEM_new);
ret->modified=1;