summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-01 08:49:05 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-08-01 08:49:05 -0400
commit73f26b8281ff0015bc42d6144c6b255440eee3c9 (patch)
tree489ce46a80b21cca9c735008c26ea0fa7a857a62
parent3aea855f9379735898791933ca021a7ec470dd19 (diff)
downloadpango-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.
-rw-r--r--pango/pangofc-shape.c2
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;