Wed, 27 Jun 2007 01:35:28 +0000
- More g_new0 instead of g_new
| libpurple/plugins/ssl/ssl-gnutls.c | file | annotate | diff | comparison | revisions |
--- 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;