mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03: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
@ -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…
x
Reference in New Issue
Block a user