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)
This commit is contained in:
parent
2b2eb210a1
commit
823ee00a39
1 changed files with 1 additions and 1 deletions
|
@ -421,7 +421,7 @@ int CRYPTO_alloc_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad,
|
||||||
if (f->new_func == NULL)
|
if (f->new_func == NULL)
|
||||||
return 0;
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue