Skip to content

Commit

Permalink
gserialized_estimate: Add missing array initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Algunenano committed Jan 10, 2018
1 parent d7b836f commit 8d96eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postgis/gserialized_estimate.c
Expand Up @@ -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++ )
Expand Down Expand Up @@ -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++ )
Expand Down

0 comments on commit 8d96eeb

Please sign in to comment.