summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-05-29 16:42:05 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-05-29 16:42:05 +0000
commitc72ee2f9e90bd209c6fb0336cdd36d5f6bb8ddb3 (patch)
treef3959eabd4594970b7fa5a74b50730cd5aa545f1 /lib
parentac879c7efaee8caff7c680d3e2c3dfb9913ba90f (diff)
use calloc, from Benjamin Baier
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/src/crypto/store/str_lib.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libssl/src/crypto/store/str_lib.c b/lib/libssl/src/crypto/store/str_lib.c
index f9beab2952b..c50620308a5 100644
--- a/lib/libssl/src/crypto/store/str_lib.c
+++ b/lib/libssl/src/crypto/store/str_lib.c
@@ -1174,11 +1174,7 @@ STORE_delete_arbitrary(STORE *s, OPENSSL_ITEM attributes[],
STORE_OBJECT *
STORE_OBJECT_new(void)
{
- STORE_OBJECT *object = malloc(sizeof(STORE_OBJECT));
-
- if (object)
- memset(object, 0, sizeof(STORE_OBJECT));
- return object;
+ return calloc(1, sizeof(STORE_OBJECT));
}
void