diff options
author | Kirill Marinushkin <k.marinushkin@gmail.com> | 2016-03-16 22:05:59 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-04-02 16:57:07 -0400 |
commit | fc9755ee0d9590510df48b5fbac7cea0b6792b1f (patch) | |
tree | e075bc4b88638e2defd08552624e79ccb9800ed9 /crypto | |
parent | 9fe9d0461ea4bcc42cd75a30f013fa61b5407b93 (diff) |
sizeof() updated to cover coding style
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bio/bss_mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bio/bss_mem.c b/crypto/bio/bss_mem.c index cc7b6d908e..02fa28d733 100644 --- a/crypto/bio/bss_mem.c +++ b/crypto/bio/bss_mem.c @@ -139,13 +139,13 @@ BIO *BIO_new_mem_buf(const void *buf, int len) static int mem_init(BIO *bi, unsigned long flags) { - BIO_BUF_MEM *bb = OPENSSL_zalloc(sizeof(BIO_BUF_MEM)); + BIO_BUF_MEM *bb = OPENSSL_zalloc(sizeof(*bb)); if (bb == NULL) return(0); if ((bb->buf = BUF_MEM_new_ex(flags)) == NULL) return(0); - if ((bb->readp = OPENSSL_zalloc(sizeof(BUF_MEM))) == NULL) + if ((bb->readp = OPENSSL_zalloc(sizeof(*bb->readp))) == NULL) return(0); *bb->readp = *bb->buf; bi->shutdown = 1; |