diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-08-01 08:49:05 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-08-01 08:49:05 -0400 |
commit | 73f26b8281ff0015bc42d6144c6b255440eee3c9 (patch) | |
tree | 489ce46a80b21cca9c735008c26ea0fa7a857a62 /pango/pangofc-shape.c | |
parent | 3aea855f9379735898791933ca021a7ec470dd19 (diff) | |
download | pango-73f26b8281ff0015bc42d6144c6b255440eee3c9.tar.gz |
Initialize the context struct
It is misleading to see uninitialized pointers
in gdb, so set them to NULL, even if they are
not used.
Diffstat (limited to 'pango/pangofc-shape.c')
-rw-r--r-- | pango/pangofc-shape.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c index 2346492a..f396b568 100644 --- a/pango/pangofc-shape.c +++ b/pango/pangofc-shape.c @@ -379,7 +379,7 @@ pango_hb_shape (PangoFont *font, const char *paragraph_text, unsigned int paragraph_length) { - PangoHbShapeContext context; + PangoHbShapeContext context = { 0, }; hb_buffer_flags_t hb_buffer_flags; hb_font_t *hb_font; hb_buffer_t *hb_buffer; |