mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Add new palloc0 call as merge of palloc and MemSet(0).
This commit is contained in:
@ -1442,8 +1442,7 @@ init_dblink_results(MemoryContext fn_mcxt)
|
||||
|
||||
oldcontext = MemoryContextSwitchTo(fn_mcxt);
|
||||
|
||||
retval = (dblink_results *) palloc(sizeof(dblink_results));
|
||||
MemSet(retval, 0, sizeof(dblink_results));
|
||||
retval = (dblink_results *) palloc0(sizeof(dblink_results));
|
||||
|
||||
retval->tup_num = -1;
|
||||
retval->res_id_index = -1;
|
||||
|
Reference in New Issue
Block a user