diff options
author | David Robillard <d@drobilla.net> | 2020-12-15 18:20:22 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-15 19:32:03 +0100 |
commit | 7c84fcb0e6bcddc043b7b92dd9d854167844948f (patch) | |
tree | ac20067a6ea88d37393e1180456dd877689ab0e9 /src/circle.c | |
parent | e33f4f6a197eb3cae29dd42ea728f5f782a29897 (diff) | |
download | ganv-7c84fcb0e6bcddc043b7b92dd9d854167844948f.tar.gz ganv-7c84fcb0e6bcddc043b7b92dd9d854167844948f.tar.bz2 ganv-7c84fcb0e6bcddc043b7b92dd9d854167844948f.zip |
Initialize all variables
Diffstat (limited to 'src/circle.c')
-rw-r--r-- | src/circle.c | 9 |
1 files changed, 7 insertions, 2 deletions
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); |