We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fb75af commit 40f50ddCopy full SHA for 40f50dd
1 file changed
powershell/ql/lib/semmle/code/powershell/controlflow/internal/ControlFlowGraphImpl.qll
@@ -198,7 +198,7 @@ module Trees {
198
exists(Parameter p |
199
p =
200
rank[i + 1](Parameter cand, int j |
201
- cand.hasDefaultValue() and j = cand.getFunctionIndex()
+ cand.hasDefaultValue() and func.getFunctionParameter(j) = cand
202
|
203
cand order by j
204
) and
0 commit comments