We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a8ee1d commit 572e3e6Copy full SHA for 572e3e6
contrib/dblink/dblink.c
@@ -982,13 +982,11 @@ materializeQueryResult(FunctionCallInfo fcinfo,
982
{
983
ReturnSetInfo *rsinfo = (ReturnSetInfo *) fcinfo->resultinfo;
984
PGresult *volatile res = NULL;
985
- volatile storeInfo sinfo;
+ volatile storeInfo sinfo = {0};
986
987
/* prepTuplestoreResult must have been called previously */
988
Assert(rsinfo->returnMode == SFRM_Materialize);
989
990
- /* initialize storeInfo to empty */
991
- memset((void *) &sinfo, 0, sizeof(sinfo));
992
sinfo.fcinfo = fcinfo;
993
994
PG_TRY();
0 commit comments