summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-04-17 21:18:25 +0200
committerTimm Bäder <mail@baedert.org>2020-06-08 19:36:29 +0200
commitf5126639d6b4d699c1a55a66135192fdd551cc26 (patch)
treead9ae1be807b0106540e32d923276232fe1339e5 /tests
parentcc3d06b60c507ee1c75cd9c3677377cd30df0e44 (diff)
downloadpango-f5126639d6b4d699c1a55a66135192fdd551cc26.tar.gz
test-common: Ignore null attr lists
pango_layout_get_attributes() is explicitly nullable but not every caller handles that case.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-common.c3
1 files changed, 3 insertions, 0 deletions
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;