summaryrefslogtreecommitdiffstats
path: root/crypto/pqueue/pqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/pqueue/pqueue.c')
-rw-r--r--crypto/pqueue/pqueue.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/pqueue/pqueue.c b/crypto/pqueue/pqueue.c
index d10088e1f9..b6e19c7f52 100644
--- a/crypto/pqueue/pqueue.c
+++ b/crypto/pqueue/pqueue.c
@@ -87,11 +87,8 @@ void pitem_free(pitem *item)
pqueue_s *pqueue_new()
{
- pqueue_s *pq = OPENSSL_malloc(sizeof(*pq));
- if (pq == NULL)
- return NULL;
+ pqueue_s *pq = OPENSSL_zalloc(sizeof(*pq));
- memset(pq, 0, sizeof(*pq));
return pq;
}