pgsql: Initialize new jsonb iterator to zero

Started by Peter Eisentrautabout 8 years ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3c9cf069454d80b0b4a54a0a90941a88a97b1122

Modified Files
--------------
src/backend/utils/adt/jsonb_util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)