]> granicus.if.org Git - postgresql/commit
PL/Python: Fix remaining scan-build warnings
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 23 Aug 2017 00:05:49 +0000 (20:05 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 29 Nov 2017 14:56:49 +0000 (09:56 -0500)
commitc7f5c58e1c6bb250ff7c24970a05e033201be409
tree0a4b1dd4dff2755422bb96f35901607a26fd3536
parentcdddd5d40b8a8b37db18adda3912e029756d1e36
PL/Python: Fix remaining scan-build warnings

Apparently, scan-build thinks that proc->is_setof can change during
PLy_exec_function().  To make it clearer, save the value in a local
variable.

Also add an assertion to clear another warning.

Reviewed-by: John Naylor <jcnaylor@gmail.com>
src/pl/plpython/plpy_exec.c