diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-06-10 17:28:39 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-06-10 17:28:39 -0400 |
commit | 4db48c7e71c1c79e9b5c27d432cee472662935ce (patch) | |
tree | b3bb4d1b7c4b9586aa87ab451fc9c252a26cb724 | |
parent | 072aa88d48f9bd267bb08eac786caf5dff1452af (diff) | |
download | pango-4db48c7e71c1c79e9b5c27d432cee472662935ce.tar.gz |
Fix a crash in pango_attr_list_equal
When allowing attributes to be NULL, we need
to take that into account here too.
-rw-r--r-- | pango/pango-attributes.c | 3 |
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; |