mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Fix uninitialized variables in json's populate_record_worker().
Peter Geoghegan.
This commit is contained in:
@ -2160,6 +2160,8 @@ populate_record_worker(FunctionCallInfo fcinfo, bool have_record_arg)
|
|||||||
my_extra = (RecordIOData *) fcinfo->flinfo->fn_extra;
|
my_extra = (RecordIOData *) fcinfo->flinfo->fn_extra;
|
||||||
my_extra->record_type = InvalidOid;
|
my_extra->record_type = InvalidOid;
|
||||||
my_extra->record_typmod = 0;
|
my_extra->record_typmod = 0;
|
||||||
|
my_extra->ncolumns = ncolumns;
|
||||||
|
MemSet(my_extra->columns, 0, sizeof(ColumnIOData) * ncolumns);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (have_record_arg && (my_extra->record_type != tupType ||
|
if (have_record_arg && (my_extra->record_type != tupType ||
|
||||||
|
Reference in New Issue
Block a user