summaryrefslogtreecommitdiffstats
path: root/crypto/store/str_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/store/str_lib.c')
-rw-r--r--crypto/store/str_lib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/store/str_lib.c b/crypto/store/str_lib.c
index 3201da9536..55ca19da8a 100644
--- a/crypto/store/str_lib.c
+++ b/crypto/store/str_lib.c
@@ -1154,9 +1154,7 @@ int STORE_delete_arbitrary(STORE *s, OPENSSL_ITEM attributes[],
STORE_OBJECT *STORE_OBJECT_new(void)
{
- STORE_OBJECT *object = OPENSSL_malloc(sizeof(*object));
- if (object)
- memset(object, 0, sizeof(*object));
+ STORE_OBJECT *object = OPENSSL_zalloc(sizeof(*object));
return object;
}