diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-06-07 14:41:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-06-07 14:41:58 +0000 |
commit | 266f7f14bb884216f7d07623deb97d8d3487e964 (patch) | |
tree | 8b13bd4c0ad356be648d746cb75b920d0e35f921 /lib/libcrypto/ex_data.c | |
parent | 09eb0761c8d7243f1ecd9af78bb13ddab0d30b0e (diff) |
malloc() result does not need a cast.
ok miod
Diffstat (limited to 'lib/libcrypto/ex_data.c')
-rw-r--r-- | lib/libcrypto/ex_data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/ex_data.c b/lib/libcrypto/ex_data.c index 5cd01c72d10..62da76fd0ee 100644 --- a/lib/libcrypto/ex_data.c +++ b/lib/libcrypto/ex_data.c @@ -343,8 +343,8 @@ def_add_index(EX_CLASS_ITEM *item, long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func) { int toret = -1; - CRYPTO_EX_DATA_FUNCS *a = (CRYPTO_EX_DATA_FUNCS *)malloc( - sizeof(CRYPTO_EX_DATA_FUNCS)); + CRYPTO_EX_DATA_FUNCS *a = malloc(sizeof(CRYPTO_EX_DATA_FUNCS)); + if (!a) { CRYPTOerr(CRYPTO_F_DEF_ADD_INDEX, ERR_R_MALLOC_FAILURE); return -1; |