Skip to content

Commit d9d36ff

Browse files
committed
C++: Fix Code Scanning errors.
1 parent 03b77db commit d9d36ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ predicate cannotContainString(Type t, boolean isIndirect) {
6868

6969
predicate isNonConst(DataFlow::Node node, boolean isIndirect) {
7070
exists(Expr e |
71-
e = [node.asExpr()] and isIndirect = false
71+
e = node.asExpr() and isIndirect = false
7272
or
73-
e = [node.asIndirectExpr()] and isIndirect = true
73+
e = node.asIndirectExpr() and isIndirect = true
7474
|
7575
exists(FunctionCall fc | fc = e |
7676
not (

0 commit comments

Comments
 (0)