projects
/
users
/
andresfreund
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe550b2
)
Fix pointer type in size passed to memset.
author
Heikki Linnakangas
<
[email protected]
>
Sun, 14 Sep 2014 13:45:08 +0000
(16:45 +0300)
committer
Heikki Linnakangas
<
[email protected]
>
Sun, 14 Sep 2014 13:48:57 +0000
(16:48 +0300)
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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/executor/nodeHash.c
b/src/backend/executor/nodeHash.c
index b3203ba7fa4deeda22471ab3561f776f9b800e0c..b428c18b5cf9a6d311c7f714c3290ea83e8083bd 100644
(file)
--- 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;