Skip to content

Commit d41e517

Browse files
committed
C++: Simplify mayAddNullTerminator.
1 parent ec2e4f4 commit d41e517

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
@@ -54,7 +54,7 @@ predicate mayAddNullTerminator(Expr e, VariableAccess va) {
5454
not functionArgumentMustBeNullTerminated(f, i) and
5555
c.getAnArgumentSubExpr(i) = va
5656
|
57-
not f.hasEntryPoint() and not functionArgumentMustBeNullTerminated(f, i)
57+
not f.hasEntryPoint()
5858
or
5959
mayAddNullTerminator(_, f.getParameter(i).getAnAccess())
6060
or

0 commit comments

Comments
 (0)