We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0fb75af + 40f50dd commit 87cbfd1Copy full SHA for 87cbfd1
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