[PATCH] gdialog core dumps



This should keep gdialog from choking.  :) Enjoy!

---------------
Jesse D. Sightler
http://www3.pair.com/jsight/

"An honest answer can get you into a lot of trouble." 
         - Anonymous
? gdialog.patch
Index: util.c
===================================================================
RCS file: /cvs/gnome/gnome-utils/gdialog/util.c,v
retrieving revision 1.4
diff -u -r1.4 util.c
--- util.c	1999/01/07 18:27:59	1.4
+++ util.c	1999/03/24 20:27:25
@@ -367,8 +367,10 @@
 		else
 			pspace=1;
 	}
-	g_free((gpointer)input); /* allocated by unquote_nl() */
-
+	if (!input)
+	{
+		g_free((gpointer)input); /* allocated by unquote_nl() */
+	}
 	if(blen)
 	{
 		GtkWidget *t;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]