From a852cfe96752b25c2deaa2653cffd60c0ec82ead Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 3 Dec 2017 11:25:17 -0500 Subject: [PATCH] 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. --- src/pl/plpython/plpy_exec.c | 2 ++ 1 file changed, 2 insertions(+) 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) {