C++: Fix Code Scanning errors.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-12-04 16:53:03 +00:00
parent 03b77dbf2a
commit d9d36ff213

View File

@@ -68,9 +68,9 @@ predicate cannotContainString(Type t, boolean isIndirect) {
predicate isNonConst(DataFlow::Node node, boolean isIndirect) {
exists(Expr e |
e = [node.asExpr()] and isIndirect = false
e = node.asExpr() and isIndirect = false
or
e = [node.asIndirectExpr()] and isIndirect = true
e = node.asIndirectExpr() and isIndirect = true
|
exists(FunctionCall fc | fc = e |
not (