From 7c84fcb0e6bcddc043b7b92dd9d854167844948f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 15 Dec 2020 18:20:22 +0100 Subject: Initialize all variables --- src/circle.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/circle.c') diff --git a/src/circle.c b/src/circle.c index 723b229..4ec698b 100644 --- a/src/circle.c +++ b/src/circle.c @@ -298,13 +298,18 @@ ganv_circle_draw(GanvItem* item, GanvCircle* circle = GANV_CIRCLE(item); GanvCirclePrivate* impl = circle->impl; - double r, g, b, a; + double r = 0.0; + double g = 0.0; + double b = 0.0; + double a = 0.0; double x = impl->coords.x; double y = impl->coords.y; ganv_item_i2w(item, &x, &y); - double dash_length, border_color, fill_color; + double dash_length = 0.0; + double border_color = 0.0; + double fill_color = 0.0; ganv_node_get_draw_properties( &circle->node, &dash_length, &border_color, &fill_color); -- cgit v1.2.1