Mercurial > pidgin
changeset 18961:fa138dbacff5
- More g_new0 instead of g_new
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Wed, 27 Jun 2007 01:35:28 +0000 |
parents | 6831c126bcf3 |
children | fcd05c39803e |
files | libpurple/plugins/ssl/ssl-gnutls.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/plugins/ssl/ssl-gnutls.c Wed Jun 27 01:09:43 2007 +0000 +++ b/libpurple/plugins/ssl/ssl-gnutls.c Wed Jun 27 01:35:28 2007 +0000 @@ -428,7 +428,7 @@ PurpleCertificate * crt; /* Allocate and prepare the internal certificate data */ - certdat = g_new(gnutls_x509_crt_t, 1); + certdat = g_new0(gnutls_x509_crt_t, 1); gnutls_x509_crt_init(certdat); /* Perform the actual certificate parse */ @@ -436,7 +436,7 @@ gnutls_x509_crt_import(*certdat, &dt, mode); /* Allocate the certificate and load it with data */ - crt = g_new(PurpleCertificate, 1); + crt = g_new0(PurpleCertificate, 1); crt->scheme = &x509_gnutls; crt->data = certdat;