From f5126639d6b4d699c1a55a66135192fdd551cc26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 17 Apr 2020 21:18:25 +0200 Subject: test-common: Ignore null attr lists pango_layout_get_attributes() is explicitly nullable but not every caller handles that case. --- tests/test-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test-common.c b/tests/test-common.c index 608b405c..786973f1 100644 --- a/tests/test-common.c +++ b/tests/test-common.c @@ -151,6 +151,9 @@ print_attr_list (PangoAttrList *attrs, GString *string) { PangoAttrIterator *iter; + if (!attrs) + return; + iter = pango_attr_list_get_iterator (attrs); do { gint start, end; -- cgit v1.2.1