[PATCH] Segfault fix in pango
- From: Anders Carlsson <andersca gnu org>
- To: gtk-devel-list gnome org
- Subject: [PATCH] Segfault fix in pango
- Date: 16 Apr 2001 11:05:18 +0200
A good idea is to actually attach the patch too :)
//andersca
andersca gnu org
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/pango/ChangeLog,v
retrieving revision 1.240
diff -u -r1.240 ChangeLog
--- ChangeLog 2001/04/13 23:47:49 1.240
+++ ChangeLog 2001/04/16 09:01:48
@@ -1,3 +1,8 @@
+2001-04-16 Anders Carlsson <andersca codefactory se>
+
+ * pango/pango-markup.c (pango_parse_markup): Set md->text to NULL if
+ text is NULL. This fixes a segfault.
+
2001-04-14 Hans Breuer <hans breuer org>
* pango/pangowin32-fontmap.c : instead of simply adding one
Index: pango/pango-markup.c
===================================================================
RCS file: /cvs/gnome/pango/pango/pango-markup.c,v
retrieving revision 1.4
diff -u -r1.4 pango-markup.c
--- pango/pango-markup.c 2000/11/30 21:04:52 1.4
+++ pango/pango-markup.c 2001/04/16 09:02:05
@@ -603,6 +603,8 @@
if (text)
md->text = g_string_new ("");
+ else
+ md->text = NULL;
if (accel_char)
*accel_char = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]