Skip to content

Commit f17c06a

Browse files
committed
C++: Fix mistake in previous commit.
1 parent f7bd74e commit f17c06a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/commons/NullTermination.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ predicate mayAddNullTerminator(Expr e, VariableAccess va) {
4545
// Assignment to another stack variable
4646
exists(Expr e0 |
4747
mayAddNullTerminatorHelper(pragma[only_bind_into](e), va, pragma[only_bind_into](e0)) and
48-
nodeBefore(e0, e)
48+
nodeBefore(e, e0)
4949
)
5050
or
5151
// Assignment to non-stack variable

0 commit comments

Comments
 (0)