From f47a173a4939efdde166ac06099ba2e215dc1766 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Sun, 29 Sep 2024 23:00:00 +0100 Subject: [PATCH] commands/CmdLQ.c: Call to function with fewer arguments than declared parameters No AI resolution. The NULL added is cdata which looks to be opaque callback user-defined-pointer, this is not used in the method printPropertiesFunc() as a possible 3rd argument. CodeQL: https://github.com/dlmiles/magic/security/code-scanning/157 --- commands/CmdLQ.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/CmdLQ.c b/commands/CmdLQ.c index bdd0e9d1..3b3440cb 100644 --- a/commands/CmdLQ.c +++ b/commands/CmdLQ.c @@ -2324,7 +2324,7 @@ CmdDoProperty(def, cmd, argstart) if (locargc == 1) { /* print all properties and their values */ - DBPropEnum(def, printPropertiesFunc); + DBPropEnum(def, printPropertiesFunc, NULL); } else if (locargc == 2)