diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-05-29 16:42:05 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-05-29 16:42:05 +0000 |
commit | 9c5bed6ba47995f2a006ddc78b4d7393b066775e (patch) | |
tree | 7c535b6bc2cac1d5abdcfa52d36af78cb7cf3231 /lib | |
parent | 3010231939e2976c18b55001b142ce6d62f28133 (diff) |
use calloc, from Benjamin Baier
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/store/str_lib.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libcrypto/store/str_lib.c b/lib/libcrypto/store/str_lib.c index f9beab2952b..c50620308a5 100644 --- a/lib/libcrypto/store/str_lib.c +++ b/lib/libcrypto/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 |