Switch some palloc/memset calls to palloc0

Michael Paquier <michael@paquier.xyz>

Commit: 1983af8e899389187026cb34c1ca9d89ea986120
Author: Michael Paquier <michael@paquier.xyz>
Date: 2019-03-27T03:02:50Z
Releases: 12.0
Switch some palloc/memset calls to palloc0

Some code paths have been doing some allocations followed by an
immediate memset() to initialize the allocated area with zeros, this is
a bit overkill as there are already interfaces to do both things in one
call.

Author: Daniel Gustafsson
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/vN0OodBPkKs7g2Z1uyk3CUEmhdtspHgYCImhlmSxv1Xn6nY1ZnaaGHL8EWUIQ-NEv36tyc4G5-uA3UXUF2l4sFXtK_EQgLN1hcgunlFVKhA=@yesql.se

Files

Discussion