summaryrefslogtreecommitdiff
path: root/contrib/dblink/dblink.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/dblink/dblink.c')
-rw-r--r--contrib/dblink/dblink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c
index 67a9d30d64..8cbce09d1b 100644
--- a/contrib/dblink/dblink.c
+++ b/contrib/dblink/dblink.c
@@ -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;