From cc5b6c7af26bbeb7862a978606ed4ac17b82c233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 17 Apr 2020 08:22:04 +0200 Subject: break_attrs: Bail out if we have no ALLOW_BREAKS attributes --- pango/break.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pango/break.c b/pango/break.c index 432ff493..2f5ff02e 100644 --- a/pango/break.c +++ b/pango/break.c @@ -1919,6 +1919,12 @@ break_attrs (const char *text, pango_attr_list_insert (&list, pango_attribute_copy (attr)); } + if (!_pango_attr_list_has_attributes (&list)) + { + _pango_attr_list_destroy (&list); + return FALSE; + } + _pango_attr_list_get_iterator (&list, &iter); do { PangoAttribute *attr; -- cgit v1.2.1