summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-06-08 19:20:14 +0200
committerTimm Bäder <mail@baedert.org>2020-06-08 19:20:44 +0200
commitea6248f5195bcfb1f11a20c7edb5fae6ab85e64d (patch)
treef090900e0a46068127fadc08c4c2f3190a1b2e7a /pango/pango-attributes.c
parent9b7b67f5e01397de03bf46bb5f8446c30952fb33 (diff)
downloadpango-ea6248f5195bcfb1f11a20c7edb5fae6ab85e64d.tar.gz
layout: Treat empty attr lists like NULL ones
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 84d24838..97c7aeaf 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1992,7 +1992,7 @@ pango_attr_list_equal (PangoAttrList *list,
gboolean
_pango_attr_list_has_attributes (const PangoAttrList *list)
{
- return (list->attributes != NULL);
+ return list && (list->attributes != NULL);
}
G_DEFINE_BOXED_TYPE (PangoAttrIterator,