Content-Length: 258930 | pFad | http://github.com/postgrespro/postgres_cluster/commit/a852cfe96752b25c2deaa2653cffd60c0ec82ead

6F Fix uninitialized-variable compiler warning induced by commit e4128ee76. · postgrespro/postgres_cluster@a852cfe · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/a852cfe96752b25c2deaa2653cffd60c0ec82ead

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy