cif/CIFgen.c: CmdFindNetProc() Call to function with fewer arguments than declared parameters

The 'isvalid' pointer argument to CmdFindNetProc() is for an optional return value, so must be
NULL when feature is not used.

Copilot Autofix rejected: ttype = CmdFindNetProc(netname, CIFDummyUse, &bbox, FALSE, additional_arg1, additional_arg2);

commands/CmdFI.c
cfb81101 (2022-03-30 13:02:12 -0400 1584)     bool *isvalid;

commit f89d52dbcc (tag: 8.3.253)
Date:   Thu Jan 6 13:29:43 2022 -0500

CodeQL: https://github.com/dlmiles/magic/security/code-scanning/7
This commit is contained in:
Darryl L. Miles 2024-09-29 23:00:00 +01:00 committed by Tim Edwards
parent ce1e027c55
commit 7feec63580
1 changed files with 1 additions and 1 deletions

View File

@ -4896,7 +4896,7 @@ CIFGenLayer(op, area, cellDef, origDef, temps, hier, clientdata)
}
netname = (char *)op->co_client;
cifPlane = curPlane;
ttype = CmdFindNetProc(netname, CIFDummyUse, &bbox, FALSE);
ttype = CmdFindNetProc(netname, CIFDummyUse, &bbox, FALSE, NULL);
if (ttype != TT_SPACE)
{
UndoDisable();