From b21c252be3a1fab22a2b287d42dcb3187f6999e9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 18 Jul 2020 11:56:59 +0200 Subject: Fix potential use of uninitialized variables --- src/group.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/group.c b/src/group.c index 11b8d08..e09a21f 100644 --- a/src/group.c +++ b/src/group.c @@ -291,7 +291,10 @@ ganv_group_bounds(GanvItem* item, double* x1, double* y1, double* x2, double* y2 GanvItem* child; GList* list; double tx1, ty1, tx2, ty2; - double minx, miny, maxx, maxy; + double minx = DBL_MAX; + double miny = DBL_MAX; + double maxx = DBL_MIN; + double maxy = DBL_MIN; int set; group = GANV_GROUP(item); -- cgit v1.2.1