[pango] Avoid a compiler warning



commit 5188156587cc388b86962fb43815a303448aeb64
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 8 00:58:58 2017 -0400

    Avoid a compiler warning
    
    The compiler complains that rightmost_space may be used
    uninitialized. And it may be right.

 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 b9351bd..761feaf 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -5194,7 +5194,7 @@ justify_clusters (PangoLayoutLine *line,
     {
       gboolean leftedge = TRUE;
       PangoGlyphString *rightmost_glyphs = NULL;
-      int rightmost_space;
+      int rightmost_space = 0;
       int residual = 0;
 
       added_so_far = 0;


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