We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6467ba4 commit 7a32299Copy full SHA for 7a32299
cpp/ql/lib/semmle/code/cpp/exprs/Literal.qll
@@ -351,7 +351,7 @@ class ArrayOrVectorAggregateLiteral extends AggregateLiteral {
351
bindingset[elementIndex]
352
predicate isValueInitialized(int elementIndex) {
353
this.isInitialized(elementIndex) and
354
- not exists(this.getElementExpr(elementIndex))
+ not exists(this.getAnElementExpr(elementIndex))
355
}
356
357
0 commit comments