Skip to content

Commit 4a14a3c

Browse files
calumgrantgeoffw0
andcommitted
Update cpp/ql/lib/semmle/code/cpp/models/interfaces/FormattingFunction.qll
Co-authored-by: Geoffrey White <[email protected]>
1 parent 0ad2e19 commit 4a14a3c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cpp/ql/lib/semmle/code/cpp/models/interfaces/FormattingFunction.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ abstract class FormattingFunction extends ArrayFunction, TaintFunction {
143143
* of parameters, then don't return anything.
144144
*/
145145
int getNumberOfExplicitParameters() {
146-
result = this.getAnExplicitDeclarationEntry().getNumberOfParameters() and
147-
forall(FunctionDeclarationEntry fde | fde = this.getAnExplicitDeclarationEntry() |
146+
forex(FunctionDeclarationEntry fde | fde = this.getAnExplicitDeclarationEntry() |
148147
result = fde.getNumberOfParameters()
149148
)
150149
}

0 commit comments

Comments
 (0)