- More g_new0 instead of g_new soc.2007.certmgr

Wed, 27 Jun 2007 01:35:28 +0000

author
William Ehlhardt <williamehlhardt@gmail.com>
date
Wed, 27 Jun 2007 01:35:28 +0000
branch
soc.2007.certmgr
changeset 18480
42936c867fee
parent 18479
a38ca6794f6f
child 18481
d220d85caaf1

- 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;
 

mercurial