pgsql: Make memset() use sizeof() rather than re-compute size - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Make memset() use sizeof() rather than re-compute size
Date
Msg-id E1eJsut-0006nY-VI@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Make memset() use sizeof() rather than re-compute size
List pgsql-committers
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: https://postgr.es/m/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(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Fix extstat collection when no stats are produced for a column
Next
From: Andres Freund
Date:
Subject: Re: pgsql: Make memset() use sizeof() rather than re-compute size