PL/Python: Fix remaining scan-build warnings

Peter Eisentraut <peter_e@gmx.net>

Commit: c7f5c58e1c6bb250ff7c24970a05e033201be409
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2017-11-29T14:56:49Z
Releases: 11.0
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>

Files

PathChange+/−
src/pl/plpython/plpy_exec.c modified +4 −2