Initialize new jsonb iterator to zero

Peter Eisentraut <peter_e@gmx.net>

Commit: 3c9cf069454d80b0b4a54a0a90941a88a97b1122
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2018-05-29T03:53:43Z
Releases: 11.0
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.

Files

PathChange+/−
src/backend/utils/adt/jsonb_util.c modified +1 −1