Fix possibly-uninitialized variable.

Oversight in e2d4ef8de et al (my fault not Peter's).  Per buildfarm.

Security: CVE-2017-7484
This commit is contained in:
Tom Lane 2017-05-08 11:18:40 -04:00
parent c928addfcc
commit cad1594322

View File

@ -374,8 +374,8 @@ calc_hist_selectivity(TypeCacheEntry *typcache, VariableStatData *vardata,
{
Datum *hist_values;
int nhist;
Datum *length_hist_values;
int length_nhist;
Datum *length_hist_values = NULL;
int length_nhist = 0;
RangeBound *hist_lower;
RangeBound *hist_upper;
int i;