From 2df465e696f49bb12c0a362aa6f68f75a752d7a8 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Sun, 14 Sep 2014 16:45:08 +0300 Subject: [PATCH] Fix pointer type in size passed to memset. Pointers are all the same size, so it makes no practical difference, but let's be tidy. Found by Coverity, noted off-list by Tom Lane. --- src/backend/executor/nodeHash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/executor/nodeHash.c b/src/backend/executor/nodeHash.c index b3203ba7fa..b428c18b5c 100644 --- a/src/backend/executor/nodeHash.c +++ b/src/backend/executor/nodeHash.c @@ -625,7 +625,7 @@ ExecHashIncreaseNumBatches(HashJoinTable hashtable) * buckets now and not have to keep track which tuples in the buckets have * already been processed. We will free the old chunks as we go. */ - memset(hashtable->buckets, 0, sizeof(HashJoinTuple *) * hashtable->nbuckets); + memset(hashtable->buckets, 0, sizeof(HashJoinTuple) * hashtable->nbuckets); oldchunks = hashtable->chunks; hashtable->chunks = NULL; -- 2.40.0