summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-18 11:56:59 +0200
committerDavid Robillard <d@drobilla.net>2020-07-18 11:56:59 +0200
commitb21c252be3a1fab22a2b287d42dcb3187f6999e9 (patch)
tree168102e3ab23b5a1e5f9f082f966753a4e313623 /src
parente3bf14f71f976d08e5efb5d832b82c567eac9c14 (diff)
downloadganv-b21c252be3a1fab22a2b287d42dcb3187f6999e9.tar.gz
ganv-b21c252be3a1fab22a2b287d42dcb3187f6999e9.tar.bz2
ganv-b21c252be3a1fab22a2b287d42dcb3187f6999e9.zip
Fix potential use of uninitialized variables
Diffstat (limited to 'src')
-rw-r--r--src/group.c5
1 files changed, 4 insertions, 1 deletions
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);