projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use sk_*_new_null() instead of sk_*_new(NULL), since that takes care
[openssl.git]
/
crypto
/
pkcs7
/
pk7_doit.c
diff --git
a/crypto/pkcs7/pk7_doit.c
b/crypto/pkcs7/pk7_doit.c
index 2768247818d043176988caace2fbe29efd3eb16f..099e9651c1c31eff321a76d49e234cf42758a027 100644
(file)
--- a/
crypto/pkcs7/pk7_doit.c
+++ b/
crypto/pkcs7/pk7_doit.c
@@
-909,7
+909,7
@@
static int add_attribute(STACK_OF(X509_ATTRIBUTE) **sk, int nid, int atrtype,
if (*sk == NULL)
{
- *sk = sk_X509_ATTRIBUTE_new
(NULL
);
+ *sk = sk_X509_ATTRIBUTE_new
_null(
);
new_attrib:
attr=X509_ATTRIBUTE_create(nid,atrtype,value);
sk_X509_ATTRIBUTE_push(*sk,attr);