diff options
| author | Peter Eisentraut | 2022-06-30 22:16:38 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2022-06-30 22:16:38 +0000 |
| commit | 258f48f858b0bcc4c3fac3fa01f79ee61ad0cd1e (patch) | |
| tree | 4e0cdca7b5fce474ac0bcb8c05c37b3283511a20 /src/backend/access | |
| parent | 8cd61d288adfabe1b7f83359eb0abd27382eec08 (diff) | |
Change some unnecessary MemSet calls
MemSet() with a value other than 0 just falls back to memset(), so the
indirection is unnecessary if the value is constant and not 0. Since
there is some interest in getting rid of MemSet(), this gets some easy
cases out of the way. (There are a few MemSet() calls that I didn't
change to maintain the consistency with their surrounding code.)
Discussion: https://www.postgresql.org/message-id/flat/CAEudQApCeq4JjW1BdnwU=m=-DvG5WyUik0Yfn3p6UNphiHjj+w@mail.gmail.com
Diffstat (limited to 'src/backend/access')
| -rw-r--r-- | src/backend/access/hash/hashovfl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/hash/hashovfl.c b/src/backend/access/hash/hashovfl.c index e34cfc302d3..86aa48d520b 100644 --- a/src/backend/access/hash/hashovfl.c +++ b/src/backend/access/hash/hashovfl.c @@ -760,7 +760,7 @@ _hash_initbitmapbuffer(Buffer buf, uint16 bmsize, bool initpage) /* set all of the bits to 1 */ freep = HashPageGetBitmap(pg); - MemSet(freep, 0xFF, bmsize); + memset(freep, 0xFF, bmsize); /* * Set pd_lower just past the end of the bitmap page data. We could even |
