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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy