mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
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.
This commit is contained in:
parent
ec6a040056
commit
a852cfe967
@ -210,6 +210,8 @@ PLy_exec_function(FunctionCallInfo fcinfo, PLyProcedure *proc)
|
|||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_DATATYPE_MISMATCH),
|
(errcode(ERRCODE_DATATYPE_MISMATCH),
|
||||||
errmsg("PL/Python procedure did not return None")));
|
errmsg("PL/Python procedure did not return None")));
|
||||||
|
fcinfo->isnull = false;
|
||||||
|
rv = (Datum) 0;
|
||||||
}
|
}
|
||||||
else if (proc->result.typoid == VOIDOID)
|
else if (proc->result.typoid == VOIDOID)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user