Skip to content

Commit b6576e5

Browse files
committed
Fix possibly-uninitialized variable.
Oversight in e2d4ef8 et al (my fault not Peter's). Per buildfarm. Security: CVE-2017-7484
1 parent 3eefc51 commit b6576e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/rangetypes_selfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ calc_hist_selectivity(TypeCacheEntry *typcache, VariableStatData *vardata,
374374
{
375375
Datum *hist_values;
376376
int nhist;
377-
Datum *length_hist_values;
378-
int length_nhist;
377+
Datum *length_hist_values = NULL;
378+
int length_nhist = 0;
379379
RangeBound *hist_lower;
380380
RangeBound *hist_upper;
381381
int i;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy