mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
fixup unique assignment
This commit is contained in:
@@ -24,7 +24,7 @@ where
|
||||
DataFlow::localFlow(DataFlow::exprNode(v.getAnAccess()),
|
||||
DataFlow::exprNode(fc.getArgument(pd.getIndex()))) and
|
||||
// this variable v was assigned by a call to the nuller function
|
||||
v.getAnAssignedValue() = nuller.getACallToThisFunction() and
|
||||
unique( | | v.getAnAssignedValue()) = nuller.getACallToThisFunction() and
|
||||
// this variable v is not accessed for an operation (check for NULLness)
|
||||
not exists(VariableAccess vc |
|
||||
vc.getTarget() = v and
|
||||
|
||||
Reference in New Issue
Block a user