summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 800c2dec..1fa8c399 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1869,6 +1869,9 @@ pango_attr_list_equal (PangoAttrList *list,
if (list == NULL || other_list == NULL)
return FALSE;
+ if (list->attributes == NULL || other_list->attributes == NULL)
+ return list->attributes == other_list->attributes;
+
attrs = list->attributes;
other_attrs = other_list->attributes;