summaryrefslogtreecommitdiff
path: root/lib/libcrypto/objects/o_names.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/objects/o_names.c')
-rw-r--r--lib/libcrypto/objects/o_names.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/objects/o_names.c b/lib/libcrypto/objects/o_names.c
index 169b8ae87da..908d947b4ed 100644
--- a/lib/libcrypto/objects/o_names.c
+++ b/lib/libcrypto/objects/o_names.c
@@ -166,7 +166,7 @@ OBJ_NAME_add(const char *name, int type, const char *data)
alias = type & OBJ_NAME_ALIAS;
type &= ~OBJ_NAME_ALIAS;
- onp = (OBJ_NAME *)malloc(sizeof(OBJ_NAME));
+ onp = malloc(sizeof(OBJ_NAME));
if (onp == NULL) {
/* ERROR */
return (0);