diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-09-14 16:45:08 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-09-14 16:48:57 +0300 |
commit | 2df465e696f49bb12c0a362aa6f68f75a752d7a8 (patch) | |
tree | 6960a8e38a12ef954b6f7cd2edbb0de036283be5 /src/backend/executor/nodeHash.c | |
parent | fe550b2ac249af5fbd8e9e19290a4ba43c882f2d (diff) | |
download | postgresql-2df465e696f49bb12c0a362aa6f68f75a752d7a8.tar.gz postgresql-2df465e696f49bb12c0a362aa6f68f75a752d7a8.zip |
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.
Diffstat (limited to 'src/backend/executor/nodeHash.c')
-rw-r--r-- | src/backend/executor/nodeHash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/executor/nodeHash.c b/src/backend/executor/nodeHash.c index b3203ba7fa4..b428c18b5cf 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; |