[rhythmbox] segmented-bar: fix uninitialized variable



commit ede2df3f5ba6b495044fad6f53d7a8120ef3ee9b
Author: Jonathan Matthew <jonathan d14n org>
Date:   Wed Nov 3 22:19:21 2021 +1000

    segmented-bar: fix uninitialized variable
    
    clang 11 complained about this

 widgets/rb-segmented-bar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/widgets/rb-segmented-bar.c b/widgets/rb-segmented-bar.c
index 282d1376e..38f21fbaf 100644
--- a/widgets/rb-segmented-bar.c
+++ b/widgets/rb-segmented-bar.c
@@ -624,7 +624,7 @@ static void rb_segmented_bar_render_strokes (RBSegmentedBar *bar,
        cairo_pattern_t *seg_sep_dark = make_segment_gradient (height,
                                                               0, 0, 0, 0.125);
        gdouble seg_w = 20;
-       gdouble x;
+       gdouble x = 0.0;
        if (seg_w > radius) {
                x = seg_w;
        } else {


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