# HG changeset patch # User William Ehlhardt # Date 1182908128 0 # Node ID 42936c867feebd8f7c1445203d2b983c4457e4e5 # Parent a38ca6794f6f6f7346a3e5648480a2cfe4169fd1 - More g_new0 instead of g_new diff -r a38ca6794f6f -r 42936c867fee libpurple/plugins/ssl/ssl-gnutls.c --- 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;