Initialize new jsonb iterator to zero
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 29 May 2018 03:53:43 +0000 (23:53 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 29 May 2018 03:53:43 +0000 (23:53 -0400)
commit3c9cf069454d80b0b4a54a0a90941a88a97b1122
treef1ad0710714cf8cfe5b9c0f22f500e3b6a5990b1
parent01deec5f8ae64b5120cc8c93d54fe0e19e477b02
Initialize new jsonb iterator to zero

Use palloc0() instead of palloc() to create a new JsonbIterator.
Otherwise, the isScalar field is sometimes not initialized.  There is
probably no impact in practice, but it's cleaner this way and it avoids
future problems.
src/backend/utils/adt/jsonb_util.c