Initialize new jsonb iterator to zero
Peter 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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/jsonb_util.c | modified | +1 −1 |