Skip to content

Commit 2df465e

Browse files
committed
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.
1 parent fe550b2 commit 2df465e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/executor/nodeHash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ ExecHashIncreaseNumBatches(HashJoinTable hashtable)
625625
* buckets now and not have to keep track which tuples in the buckets have
626626
* already been processed. We will free the old chunks as we go.
627627
*/
628-
memset(hashtable->buckets, 0, sizeof(HashJoinTuple *) * hashtable->nbuckets);
628+
memset(hashtable->buckets, 0, sizeof(HashJoinTuple) * hashtable->nbuckets);
629629
oldchunks = hashtable->chunks;
630630
hashtable->chunks = NULL;
631631

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy