Skip to content

Commit bf77a42

Browse files
committed
unified: Fix variable not being used in all disjuncts
1 parent b9910e3 commit bf77a42

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎unified/ql/lib/codeql/unified/internal/dataflow/DataFlowNode.qll‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,11 @@ class BuilderNode extends TDataFlowNodeStage1 {
239239
result = "[variable " + kind + "] " + v.toString()
240240
)
241241
or
242-
exists(DataFlowCallable callable, ParameterPosition pos |
243-
this.isImplicitParameter(callable, pos) and
244-
result = "[" + pos + " param] " + callable.toString()
242+
exists(DataFlowCallable callable |
243+
exists(ParameterPosition pos |
244+
this.isImplicitParameter(callable, pos) and
245+
result = "[" + pos + " param] " + callable.toString()
246+
)
245247
or
246248
this.isCallableEx(callable) and
247249
result = "[callable] " + callable.toString()

0 commit comments

Comments
 (0)