diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-07-06 07:20:01 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-07-06 14:45:48 -0400 |
commit | 66ad8cb94a8ce2a53a615c66f1894dfe58b6064d (patch) | |
tree | 429eeeb97567fcc8e8ec6c870f56486fb24d0548 /pango/pango-layout.c | |
parent | e5692c88409893236fd54b3ff9ed8ee18713bac7 (diff) | |
download | pango-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.c | 2 |
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; |