[pango/matthiasc/for-main: 13/14] renderer: Fix static analysis warnings




commit d0558cfd936cd89ca879d2e7be0760d010ed8699
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Sep 17 19:34:55 2021 -0400

    renderer: Fix static analysis warnings
    
    Fix a warnings about garbage values that are
    showing up in the gtk static-scan build.

 pango/pango-renderer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index d47ba13a..b3b70549 100644
--- a/pango/pango-renderer.c
+++ b/pango/pango-renderer.c
@@ -575,7 +575,7 @@ pango_renderer_draw_layout_line (PangoRenderer   *renderer,
 {
   int x_off = 0;
   int glyph_string_width;
-  LineState state;
+  LineState state = { 0, };
   GSList *l;
   gboolean got_overall = FALSE;
   PangoRectangle overall_rect;


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