diff lib/sslcommon.c @ 942:85cf59eafce2

2008-01-24 Brian Masney <masneyb@gftp.org> * lib/config_file.c lib/sshv2.c lib/sslcommon.c lib/rfc2068.c - s/g_malloc/g_malloc0/
author masneyb
date Thu, 24 Jan 2008 23:28:30 +0000
parents 1808cebed602
children 9a6571938f89
line wrap: on
line diff
--- a/lib/sslcommon.c	Thu Jan 24 23:26:45 2008 +0000
+++ b/lib/sslcommon.c	Thu Jan 24 23:28:30 2008 +0000
@@ -237,7 +237,7 @@
 { 
   struct CRYPTO_dynlock_value *value;
 
-  value = g_malloc (sizeof (*value));
+  value = g_malloc0 (sizeof (*value));
   value->mutex = g_mutex_new ();
   return (value);
 }
@@ -273,7 +273,7 @@
   return;
 #endif
 
-  gftp_ssl_mutexes = g_malloc (CRYPTO_num_locks( ) * sizeof (*gftp_ssl_mutexes));
+  gftp_ssl_mutexes = g_malloc0 (CRYPTO_num_locks( ) * sizeof (*gftp_ssl_mutexes));
 
   for (i = 0; i < CRYPTO_num_locks ( ); i++)
     gftp_ssl_mutexes[i] = g_mutex_new ();