From 8d96eeb64806935d4744020f53245bffd69acde4 Mon Sep 17 00:00:00 2001 From: Raul Marin Date: Wed, 10 Jan 2018 11:12:22 +0100 Subject: [PATCH] gserialized_estimate: Add missing array initialization --- postgis/gserialized_estimate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgis/gserialized_estimate.c b/postgis/gserialized_estimate.c index 8fa9f612bf1..c6fea2303a3 100644 --- a/postgis/gserialized_estimate.c +++ b/postgis/gserialized_estimate.c @@ -1732,7 +1732,7 @@ compute_gserialized_stats_mode(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfu */ do { - ND_BOX nd_cell; + ND_BOX nd_cell = { {0.0, 0.0, 0.0, 0.0}, {0.0, 0.0, 0.0, 0.0} }; double ratio; /* Create a box for this histogram cell */ for ( d = 0; d < nd_stats->ndims; d++ ) @@ -1990,7 +1990,7 @@ estimate_selectivity(const GBOX *box, const ND_STATS *nd_stats, int mode) do { float cell_count, ratio; - ND_BOX nd_cell; + ND_BOX nd_cell = { {0.0, 0.0, 0.0, 0.0}, {0.0, 0.0, 0.0, 0.0} }; /* We have to pro-rate partially overlapped cells. */ for ( d = 0; d < nd_stats->ndims; d++ )