# HG changeset patch # User masneyb # Date 1105889721 0 # Node ID b8faf63b2e9b109a88505e2a1383700cd0e3c377 # Parent 219bb535750b866d495ea63dd01f3245872cf141 2005-1-16 Brian Masney * 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) diff -r 219bb535750b -r b8faf63b2e9b ChangeLog --- 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 + * 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 * 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 diff -r 219bb535750b -r b8faf63b2e9b src/gtk/misc-gtk.c --- 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;