aboutsummaryrefslogtreecommitdiff
path: root/src/pl/plpython/plpy_exec.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-12-03 11:25:17 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2017-12-03 11:25:17 -0500
commita852cfe96752b25c2deaa2653cffd60c0ec82ead (patch)
treedce664167f0598b8c05d796355e38872bfbf00c5 /src/pl/plpython/plpy_exec.c
parentec6a04005618c206163761e5739a8b90debd6b1e (diff)
downloadpostgresql-a852cfe96752b25c2deaa2653cffd60c0ec82ead.tar.gz
postgresql-a852cfe96752b25c2deaa2653cffd60c0ec82ead.zip
Fix uninitialized-variable compiler warning induced by commit e4128ee76.
I'm a little bit astonished that anyone's compiler would have failed to complain about this. The compiler surely does not know that is_procedure means the function return value will be ignored.
Diffstat (limited to 'src/pl/plpython/plpy_exec.c')
-rw-r--r--src/pl/plpython/plpy_exec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pl/plpython/plpy_exec.c b/src/pl/plpython/plpy_exec.c
index 4594a08eadb..1e0f3d9d3ae 100644
--- a/src/pl/plpython/plpy_exec.c
+++ b/src/pl/plpython/plpy_exec.c
@@ -210,6 +210,8 @@ PLy_exec_function(FunctionCallInfo fcinfo, PLyProcedure *proc)
ereport(ERROR,
(errcode(ERRCODE_DATATYPE_MISMATCH),
errmsg("PL/Python procedure did not return None")));
+ fcinfo->isnull = false;
+ rv = (Datum) 0;
}
else if (proc->result.typoid == VOIDOID)
{