diff options
author | Pauli <paul.dale@oracle.com> | 2019-08-02 03:56:46 +0200 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-08-02 03:56:46 +0200 |
commit | 823ee00a396f91df4517af13dafae679ae10b3f4 (patch) | |
tree | f2ac0b6f8d402cfbe2c3a2533a4f0814d99f4d89 /crypto/ex_data.c | |
parent | Fix commit a672a02a s390x build breakage (diff) | |
download | openssl-823ee00a396f91df4517af13dafae679ae10b3f4.tar.xz openssl-823ee00a396f91df4517af13dafae679ae10b3f4.zip |
Use NULL as parameter when pointer can only be NULL.
Code clarification.
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
(Merged from https://github.com/openssl/openssl/pull/9514)
Diffstat (limited to 'crypto/ex_data.c')
-rw-r--r-- | crypto/ex_data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ex_data.c b/crypto/ex_data.c index d7d0d5a726..a49aa087c8 100644 --- a/crypto/ex_data.c +++ b/crypto/ex_data.c @@ -421,7 +421,7 @@ int CRYPTO_alloc_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad, if (f->new_func == NULL) return 0; - f->new_func(obj, curval, ad, idx, f->argl, f->argp); + f->new_func(obj, NULL, ad, idx, f->argl, f->argp); return 1; } |