Skip to content

Commit a852cfe

Browse files
committed
Fix uninitialized-variable compiler warning induced by commit e4128ee.
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.
1 parent ec6a040 commit a852cfe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pl/plpython/plpy_exec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ PLy_exec_function(FunctionCallInfo fcinfo, PLyProcedure *proc)
210210
ereport(ERROR,
211211
(errcode(ERRCODE_DATATYPE_MISMATCH),
212212
errmsg("PL/Python procedure did not return None")));
213+
fcinfo->isnull = false;
214+
rv = (Datum) 0;
213215
}
214216
else if (proc->result.typoid == VOIDOID)
215217
{

0 commit comments

Comments
 (0)