summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-06-13 20:54:11 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-06-13 20:54:11 +0000
commit9a14e5d71232b809f920605ee070aeab74e27955 (patch)
tree5a491873cbacd0b0ad20ae65b3fd059a91f71ef5 /pango
parentbbc93a92c3c34a9da3236a0906a6062898e0193d (diff)
downloadpango-9a14e5d71232b809f920605ee070aeab74e27955.tar.gz
Fix problem with attr_list == NULL. (#85079, Andreas J. Guelzow)
Thu Jun 13 16:39:01 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-markup.c (pango_parse_markup): Fix problem with attr_list == NULL. (#85079, Andreas J. Guelzow)
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-markup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pango-markup.c b/pango/pango-markup.c
index 23a88345..6ca773d7 100644
--- a/pango/pango-markup.c
+++ b/pango/pango-markup.c
@@ -598,6 +598,8 @@ pango_parse_markup (const char *markup_text,
*/
if (attr_list)
md->attr_list = pango_attr_list_new ();
+ else
+ md->attr_list = NULL;
md->text = g_string_new ("");