Skip to content

Commit 5b0a3dc

Browse files
committed
Accidental removal of an and.
1 parent 95ebbb1 commit 5b0a3dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ predicate isNonConst(DataFlow::Node node) {
9595
|
9696
node = callOutput(call, output)
9797
)
98-
) not exists(Call c |
98+
) and
99+
not exists(Call c |
99100
c.getTarget().hasDefinition() and
100101
if node instanceof DataFlow::DefinitionByReferenceNode
101102
then c.getAnArgument() = node.asDefiningArgument()

0 commit comments

Comments
 (0)