Skip to content

Commit ab4b823

Browse files
committed
fixup unique assignment
1 parent 8ace9da commit ab4b823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/experimental/Likely Bugs/DerefNullResult.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ where
2424
DataFlow::localFlow(DataFlow::exprNode(v.getAnAccess()),
2525
DataFlow::exprNode(fc.getArgument(pd.getIndex()))) and
2626
// this variable v was assigned by a call to the nuller function
27-
v.getAnAssignedValue() = nuller.getACallToThisFunction() and
27+
unique( | | v.getAnAssignedValue()) = nuller.getACallToThisFunction() and
2828
// this variable v is not accessed for an operation (check for NULLness)
2929
not exists(VariableAccess vc |
3030
vc.getTarget() = v and

0 commit comments

Comments
 (0)