Skip to content

Commit 2972a4e

Browse files
committed
Data flow: Remove spurious space in Sink:x provenance
1 parent c53179f commit 2972a4e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2963,16 +2963,17 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
29632963
)
29642964
or
29652965
// a final step to a sink
2966-
exists(string l2, string sinkmodel |
2967-
result = this.getSuccMid(l2).projectToSink(sinkmodel)
2966+
exists(string l2, string sinkmodel, string l2_ |
2967+
result = this.getSuccMid(l2).projectToSink(sinkmodel) and
2968+
if l2 = "" then l2_ = l2 else l2_ = l2 + " "
29682969
|
29692970
not this.isSourceWithLabel(_) and
2970-
if sinkmodel != "" then label = l2 + " Sink:" + sinkmodel else label = l2
2971+
if sinkmodel != "" then label = l2_ + "Sink:" + sinkmodel else label = l2
29712972
or
29722973
exists(string l1 |
29732974
this.isSourceWithLabel(l1) and
29742975
if sinkmodel != ""
2975-
then label = l1 + l2 + " Sink:" + sinkmodel
2976+
then label = l1 + l2_ + "Sink:" + sinkmodel
29762977
else label = l1 + l2
29772978
)
29782979
)

0 commit comments

Comments
 (0)