pgsql: Initialize new jsonb iterator to zero

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Initialize new jsonb iterator to zero
Дата
Msg-id E1fNWHY-0004Zb-MQ@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Return a value from Install.pm's lcopy function
Следующее
От: Teodor Sigaev
Дата:
Сообщение: pgsql: Move _bt_upgrademetapage() into critical section.