changeset 659:b8faf63b2e9b

2005-1-16 Brian Masney <masneyb@gftp.org> * src/gtk/misc-gtk.c (MakeEditDialog, MakeYesNoDialog) - use g_malloc0() instead of g_malloc() to allocate the structures. This ensures that all of the pointers are initialized to NULL (closes #162762)
author masneyb
date Sun, 16 Jan 2005 15:35:21 +0000
parents 219bb535750b
children 3bf77096052c
files ChangeLog src/gtk/misc-gtk.c
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Jan 08 08:43:24 2005 +0000
+++ b/ChangeLog	Sun Jan 16 15:35:21 2005 +0000
@@ -1,3 +1,9 @@
+2005-1-16 Brian Masney <masneyb@gftp.org>
+	* src/gtk/misc-gtk.c (MakeEditDialog, MakeYesNoDialog) - use
+	g_malloc0() instead of g_malloc() to allocate the structures. This
+	ensures that all of the pointers are initialized to NULL (closes
+	#162762)
+
 2004-12-31 Brian Masney <masneyb@gftp.org>
 	* lib/sshv2.c (sshv2_read_response) - added debugging messages if
 	compiled with -DDEBUG. Added sshv2_response_return_code()
@@ -3198,7 +3204,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.388 2004/12/31 22:55:23 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.389 2005/01/16 15:35:20 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- a/src/gtk/misc-gtk.c	Sat Jan 08 08:43:24 2005 +0000
+++ b/src/gtk/misc-gtk.c	Sun Jan 16 15:35:21 2005 +0000
@@ -916,7 +916,7 @@
   gftp_dialog_data * ddata;
   const gchar * yes_text;
 
-  ddata = g_malloc (sizeof (*ddata));
+  ddata = g_malloc0 (sizeof (*ddata));
   ddata->yesfunc = okfunc;
   ddata->yespointer = okptr;
   ddata->nofunc = cancelfunc;
@@ -1065,7 +1065,7 @@
   GtkWidget * tempwid;
 #endif
 
-  ddata = g_malloc (sizeof (*ddata));
+  ddata = g_malloc0 (sizeof (*ddata));
   ddata->yesfunc = yesfunc;
   ddata->yespointer = yespointer;
   ddata->nofunc = nofunc;