projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e20d7d7
)
sk_***_new_null() seems to be there to avoid exactly this sort of thing
author
Geoff Thorpe
<geoff@openssl.org>
Wed, 31 May 2000 17:41:34 +0000
(17:41 +0000)
committer
Geoff Thorpe
<geoff@openssl.org>
Wed, 31 May 2000 17:41:34 +0000
(17:41 +0000)
which is a cast between NULL and a function pointer.
crypto/asn1/x_name.c
patch
|
blob
|
history
diff --git
a/crypto/asn1/x_name.c
b/crypto/asn1/x_name.c
index 64baf5719d86e167e217f5bffc009863e9a0908f..62e0ed0fc7fe5d99383d8ef35448cdf22d41e142 100644
(file)
--- 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;