diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2016-04-07 20:45:24 +0300 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2016-04-07 20:45:24 +0300 |
commit | 3308467905aa157139d24375850cfe49ee90a0cf (patch) | |
tree | daf9cbe2c0aab6c3a8505d0eb53334aae082202f /src/backend/utils/adt/tsquery_cleanup.c | |
parent | f338dd7585cab45da9053e883ad65a440a99d3be (diff) | |
download | postgresql-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.c | 3 |
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; |