mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Instruct Coverity using an assertion.
This should make Coverity deduce that plperl_call_perl_func() does not dereference NULL argtypes. Back-patch to 9.5, where the affected code was introduced. Michael Paquier
This commit is contained in:
parent
63acfb79ab
commit
d4b686af0b
@ -2111,8 +2111,10 @@ plperl_call_perl_func(plperl_proc_desc *desc, FunctionCallInfo fcinfo)
|
|||||||
PUSHMARK(SP);
|
PUSHMARK(SP);
|
||||||
EXTEND(sp, desc->nargs);
|
EXTEND(sp, desc->nargs);
|
||||||
|
|
||||||
|
/* Get signature for true functions; inline blocks have no args. */
|
||||||
if (fcinfo->flinfo->fn_oid)
|
if (fcinfo->flinfo->fn_oid)
|
||||||
get_func_signature(fcinfo->flinfo->fn_oid, &argtypes, &nargs);
|
get_func_signature(fcinfo->flinfo->fn_oid, &argtypes, &nargs);
|
||||||
|
Assert(nargs == desc->nargs);
|
||||||
|
|
||||||
for (i = 0; i < desc->nargs; i++)
|
for (i = 0; i < desc->nargs; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user