Grip crashes on current because malloc'ed memory is not zeroed.

PR:		37652
Submitted by:	maintainer
Reported by:	anholt
This commit is contained in:
Patrick Li 2002-05-02 01:37:47 +00:00
parent aa577e506e
commit 2615f2d46f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=58438

View File

@ -0,0 +1,11 @@
--- src/grip.c.orig Wed May 1 18:30:22 2002
+++ src/grip.c Wed May 1 18:30:33 2002
@@ -144,7 +144,7 @@
app=gnome_app_new(PACKAGE,_("Grip"));
- ginfo=g_new(GripInfo,1);
+ ginfo=g_new0(GripInfo,1);
gtk_object_set_user_data(GTK_OBJECT(app),(gpointer)ginfo);