We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bacb18 commit 74ff579Copy full SHA for 74ff579
cpp/ql/lib/semmle/code/cpp/controlflow/Nullness.qll
@@ -46,7 +46,7 @@ predicate nullCheckExpr(Expr checkExpr, Variable var) {
46
or
47
exists(LogicalAndExpr op, AnalysedExpr child |
48
expr = op and
49
- op.getRightOperand() = child and
+ (op.getRightOperand() = child or op.getLeftOperand() = child) and
50
nullCheckExpr(child, v)
51
)
52
@@ -99,7 +99,7 @@ predicate validCheckExpr(Expr checkExpr, Variable var) {
99
100
101
102
103
validCheckExpr(child, v)
104
105
0 commit comments