pgsql: Make memset() use sizeof() rather than re-compute size
Make memset() use sizeof() rather than re-compute size
This is simpler and more closely follows overwhelming precedent.
Report and patch by Mark Dilger.
Discussion: /messages/by-id/9A68FB88-5F45-4848-9926-8586E2D777D1@gmail.com
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/cce3d72a8a42be2db18aaabbf100f8e0f540206c
Modified Files
--------------
src/backend/statistics/extended_stats.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
On 2017-11-29 03:20:07 +0000, Alvaro Herrera wrote:
Make memset() use sizeof() rather than re-compute size
Minor nitpick: This commit subject line reads a lot more general than
a detail in extended_stats.c - as if you'd modified a memset()
implementation or such ;)
Greetings,
Andres Freund
Andres Freund wrote:
On 2017-11-29 03:20:07 +0000, Alvaro Herrera wrote:
Make memset() use sizeof() rather than re-compute size
Minor nitpick: This commit subject line reads a lot more general than
a detail in extended_stats.c - as if you'd modified a memset()
implementation or such ;)
Eh, you're right -- I didn't notice that. I'll pay more attention to
that ...
--
�lvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services