diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-02-02 09:17:08 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-02-02 09:17:08 +0100 |
commit | 001a6c4027d032e0ca2b75f2c2624304b0ab2b02 (patch) | |
tree | 078aceb678a2080dec1aba9bf8b1e704511c4db0 /lib/x509/verify-high.c | |
parent | 4cf696a1a11bc77c170853e66781c9e8393af90d (diff) | |
download | gnutls-001a6c4027d032e0ca2b75f2c2624304b0ab2b02.tar.gz |
Set memory to zero on allocation.
Diffstat (limited to 'lib/x509/verify-high.c')
-rw-r--r-- | lib/x509/verify-high.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c index 7ddf433e9b..98d3a958c5 100644 --- a/lib/x509/verify-high.c +++ b/lib/x509/verify-high.c @@ -74,7 +74,7 @@ gnutls_x509_trust_list_init (gnutls_x509_trust_list_t * list, unsigned int size) if (size == 0) size = DEFAULT_SIZE; tmp->size = size; - tmp->node = gnutls_malloc(tmp->size * sizeof(tmp->node[0])); + tmp->node = gnutls_calloc(1, tmp->size * sizeof(tmp->node[0])); if (tmp->node == NULL) { gnutls_assert(); |