diff options
author | Rich Salz <rsalz@akamai.com> | 2015-09-04 14:13:19 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-09-04 17:45:44 +0200 |
commit | a939b0aab5deb3678308df804d25a340240deee5 (patch) | |
tree | 85103a8ee9dd6da3a4b40b56c8dda900ee50a09b /crypto/stack | |
parent | Revert "OPENSSL_NO_xxx cleanup: RFC3779" (diff) | |
download | openssl-a939b0aab5deb3678308df804d25a340240deee5.tar.xz openssl-a939b0aab5deb3678308df804d25a340240deee5.zip |
More zalloc nits
Found on GitHub by dimman
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/stack')
-rw-r--r-- | crypto/stack/stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/stack/stack.c b/crypto/stack/stack.c index e9d80a72db..9d2d4f4658 100644 --- a/crypto/stack/stack.c +++ b/crypto/stack/stack.c @@ -153,7 +153,7 @@ _STACK *sk_new(int (*c) (const void *, const void *)) if ((ret = OPENSSL_zalloc(sizeof(_STACK))) == NULL) goto err; - if ((ret->data = OPENSSL_malloc(sizeof(*ret->data) * MIN_NODES)) == NULL) + if ((ret->data = OPENSSL_zalloc(sizeof(*ret->data) * MIN_NODES)) == NULL) goto err; ret->comp = c; ret->num_alloc = MIN_NODES; |