summaryrefslogtreecommitdiffstats
path: root/crypto/bio/bf_nbio.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2015-09-03 15:15:26 +0200
committerRich Salz <rsalz@openssl.org>2015-09-03 22:26:34 +0200
commit64b25758edca688a30f02c260262150f7ad0bc7d (patch)
tree15ad5a8c7985e2b27aaf7a14737fd980a36349dd /crypto/bio/bf_nbio.c
parentAdd UEFI flag for rand build (diff)
downloadopenssl-64b25758edca688a30f02c260262150f7ad0bc7d.tar.xz
openssl-64b25758edca688a30f02c260262150f7ad0bc7d.zip
remove 0 assignments.
After openssl_zalloc, cleanup more "set to 0/NULL" assignments. Many are from github feedback. Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/bio/bf_nbio.c')
-rw-r--r--crypto/bio/bf_nbio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/bio/bf_nbio.c b/crypto/bio/bf_nbio.c
index 7980711d3d..2a2e3146a2 100644
--- a/crypto/bio/bf_nbio.c
+++ b/crypto/bio/bf_nbio.c
@@ -102,13 +102,12 @@ static int nbiof_new(BIO *bi)
{
NBIO_TEST *nt;
- if ((nt = OPENSSL_malloc(sizeof(*nt))) == NULL)
+ if ((nt = OPENSSL_zalloc(sizeof(*nt))) == NULL)
return (0);
nt->lrn = -1;
nt->lwn = -1;
bi->ptr = (char *)nt;
bi->init = 1;
- bi->flags = 0;
return (1);
}