[gtk/wip/matthiasc/lottie-stroke: 2/17] Fix a compiler warning




commit 89c021d43ab9390782a44f8b79fb4d218c3d83b0
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Dec 3 23:22:25 2020 -0500

    Fix a compiler warning
    
    Initializing length was lost in 666dbec38342b57594d37138.

 gtk/gtkrenderborder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkrenderborder.c b/gtk/gtkrenderborder.c
index af04f1a8bf..3a273ffcfb 100644
--- a/gtk/gtkrenderborder.c
+++ b/gtk/gtkrenderborder.c
@@ -436,7 +436,7 @@ snapshot_frame_stroke (GtkSnapshot          *snapshot,
       border_width[0] == border_width[3] &&
       hidden_side == 0)
     {
-      double length;
+      double length = 0;
 
       /* FAST PATH:
        * Mostly expected to trigger for focus rectangles */


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