mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 06:07:34 +02:00
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.ccfb81101(2022-03-30 13:02:12 -0400 1584) bool *isvalid; commitf89d52dbcc(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:
committed by
Tim Edwards
parent
ce1e027c55
commit
7feec63580
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user