mirror of
https://github.com/postgres/postgres.git
synced 2026-03-10 02:01:23 -04: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
d3762fe6c2
commit
0d46bdde2b
1 changed files with 2 additions and 0 deletions
|
|
@ -2111,8 +2111,10 @@ plperl_call_perl_func(plperl_proc_desc *desc, FunctionCallInfo fcinfo)
|
|||
PUSHMARK(SP);
|
||||
EXTEND(sp, desc->nargs);
|
||||
|
||||
/* Get signature for true functions; inline blocks have no args. */
|
||||
if (fcinfo->flinfo->fn_oid)
|
||||
get_func_signature(fcinfo->flinfo->fn_oid, &argtypes, &nargs);
|
||||
Assert(nargs == desc->nargs);
|
||||
|
||||
for (i = 0; i < desc->nargs; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue