Skip to content

Commit 88ff741

Browse files
committed
Address review comment
1 parent 2cc7388 commit 88ff741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c/cert/src/rules/EXP37-C/DoNotCallFunctionPointerWithIncompatibleType.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ where
6262
ExpressionsPackage::doNotCallFunctionPointerWithIncompatibleTypeQuery()) and
6363
access = src.getNode().asExpr() and
6464
SuspectFunctionPointerToCallFlow::flowPath(src, sink) and
65-
not src.getNode().asExpr().getType() = sink.getNode().asExpr().getFullyConverted().getType()
65+
not access.getType() = sink.getNode().asExpr().getFullyConverted().getType()
6666
select src, src, sink,
6767
"Incompatible function $@ assigned to function pointer is eventually called through the pointer.",
6868
access.getTarget(), access.getTarget().getName()

0 commit comments

Comments
 (0)