# HG changeset patch # User William Ehlhardt # Date 1182908128 0 # Node ID fa138dbacff5f6faac323aba29d2df3368f3699b # Parent 6831c126bcf39c6df6d4b053dccca2f78d4fbc21 - More g_new0 instead of g_new diff -r 6831c126bcf3 -r fa138dbacff5 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;