mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
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.
This commit is contained in:
parent
fe550b2ac2
commit
2df465e696
@ -625,7 +625,7 @@ ExecHashIncreaseNumBatches(HashJoinTable hashtable)
|
|||||||
* buckets now and not have to keep track which tuples in the buckets have
|
* 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.
|
* 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;
|
oldchunks = hashtable->chunks;
|
||||||
hashtable->chunks = NULL;
|
hashtable->chunks = NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user