diff src/uicommon/gftpui.c @ 941:19b6d55e2646

2008-01-24 Brian Masney <masneyb@gftp.org> * src/gtk/gftp-gtk.c src/gtk/menu-items.c src/gtk/transfer.c src/gtk/dnd.c src/gtk/gtkui_transfer.c src/gtk/bookmarks.c src/uicommon/gftpui.c - s/g_malloc/g_malloc0/
author masneyb
date Thu, 24 Jan 2008 23:26:45 +0000
parents e9f22ad1dec5
children 4c7a58ef26c1
line wrap: on
line diff
--- a/src/uicommon/gftpui.c	Mon Jan 07 13:54:09 2008 +0000
+++ b/src/uicommon/gftpui.c	Thu Jan 24 23:26:45 2008 +0000
@@ -874,7 +874,7 @@
         }
 
       tdata->files = g_list_append (tdata->files, fle);
-      fle = g_malloc (sizeof (*fle));
+      fle = g_malloc0 (sizeof (*fle));
     }
 
   g_free (fle);
@@ -1262,7 +1262,7 @@
   int ret;
 
   gftp_lookup_request_option (tdata->fromreq, "trans_blksize", &trans_blksize);
-  buf = g_malloc (trans_blksize);
+  buf = g_malloc0 (trans_blksize);
 
   memset (&updatetime, 0, sizeof (updatetime));
   gftpui_start_current_file_in_transfer (tdata);