summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-07-06 07:20:01 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-07-06 14:45:48 -0400
commit66ad8cb94a8ce2a53a615c66f1894dfe58b6064d (patch)
tree429eeeb97567fcc8e8ec6c870f56486fb24d0548 /pango/pango-layout.c
parente5692c88409893236fd54b3ff9ed8ee18713bac7 (diff)
downloadpango-66ad8cb94a8ce2a53a615c66f1894dfe58b6064d.tar.gz
layout: Zero out log attrs
This makes tests more reproducible.
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index ae2745b0..0227f819 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -4309,7 +4309,7 @@ pango_layout_check_lines (PangoLayout *layout)
itemize_attrs = NULL;
}
- layout->log_attrs = g_new (PangoLogAttr, layout->n_chars + 1);
+ layout->log_attrs = g_new0 (PangoLogAttr, layout->n_chars + 1);
start_offset = 0;
start = layout->text;