summaryrefslogtreecommitdiff
path: root/contrib/bloom/blcost.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bloom/blcost.c')
-rw-r--r--contrib/bloom/blcost.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/bloom/blcost.c b/contrib/bloom/blcost.c
index d42e4e96284..d4b1c763034 100644
--- a/contrib/bloom/blcost.c
+++ b/contrib/bloom/blcost.c
@@ -26,9 +26,7 @@ blcostestimate(PlannerInfo *root, IndexPath *path, double loop_count,
double *indexPages)
{
IndexOptInfo *index = path->indexinfo;
- GenericCosts costs;
-
- MemSet(&costs, 0, sizeof(costs));
+ GenericCosts costs = {0};
/* We have to visit all index tuples anyway */
costs.numIndexTuples = index->tuples;