aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/tsquery_cleanup.c
diff options
context:
space:
mode:
authorTeodor Sigaev <teodor@sigaev.ru>2016-04-07 20:45:24 +0300
committerTeodor Sigaev <teodor@sigaev.ru>2016-04-07 20:45:24 +0300
commit3308467905aa157139d24375850cfe49ee90a0cf (patch)
treedaf9cbe2c0aab6c3a8505d0eb53334aae082202f /src/backend/utils/adt/tsquery_cleanup.c
parentf338dd7585cab45da9053e883ad65a440a99d3be (diff)
downloadpostgresql-3308467905aa157139d24375850cfe49ee90a0cf.tar.gz
postgresql-3308467905aa157139d24375850cfe49ee90a0cf.zip
Zeroing unused parts ducring tsquery construction.
Per investigation failure skink buildfarm member and RANDOMIZE_ALLOCATED_MEMORY help
Diffstat (limited to 'src/backend/utils/adt/tsquery_cleanup.c')
-rw-r--r--src/backend/utils/adt/tsquery_cleanup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/utils/adt/tsquery_cleanup.c b/src/backend/utils/adt/tsquery_cleanup.c
index 126795504ad..0f6ef6f541f 100644
--- a/src/backend/utils/adt/tsquery_cleanup.c
+++ b/src/backend/utils/adt/tsquery_cleanup.c
@@ -347,7 +347,8 @@ makeNODE(int8 op, NODE *left, NODE *right)
{
NODE *node = palloc(sizeof(NODE));
- node->valnode = palloc(sizeof(QueryItem));
+ /* zeroing allocation to prevent difference in unused bytes */
+ node->valnode = palloc0(sizeof(QueryItem));
node->valnode->qoperator.type = QI_OPR;
node->valnode->qoperator.oper = op;