mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-11 19:20:40 +08:00
Fix uninitialized variables in json's populate_record_worker().
Peter Geoghegan.
This commit is contained in:
parent
2d5e0f07de
commit
7e4d1600a6
@ -2160,6 +2160,8 @@ populate_record_worker(FunctionCallInfo fcinfo, bool have_record_arg)
|
||||
my_extra = (RecordIOData *) fcinfo->flinfo->fn_extra;
|
||||
my_extra->record_type = InvalidOid;
|
||||
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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user