[pango/missing-hex-boxes: 2/3] Initialize the context struct



commit 73f26b8281ff0015bc42d6144c6b255440eee3c9
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Aug 1 08:49:05 2019 -0400

    Initialize the context struct
    
    It is misleading to see uninitialized pointers
    in gdb, so set them to NULL, even if they are
    not used.

 pango/pangofc-shape.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]