index b3203ba7fa4deeda22471ab3561f776f9b800e0c..b428c18b5cf9a6d311c7f714c3290ea83e8083bd 100644 (file)
@@ -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;