Skip to content

Commit 7b6a91e

Browse files
committed
Fix bad join order in comparesFirstCharacter
1 parent a1b7096 commit 7b6a91e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/ql/lib/semmle/go/StringOps.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ module StringOps {
110110
DataFlow::EqualityTestNode eq, DataFlow::Node str, DataFlow::Node rhs
111111
) {
112112
exists(DataFlow::ElementReadNode read |
113-
eq.hasOperands(globalValueNumber(read).getANode(), rhs) and
114-
str = read.getBase() and
113+
eq.hasOperands(globalValueNumber(pragma[only_bind_out](read)).getANode(), rhs) and
114+
str = pragma[only_bind_out](read).getBase() and
115115
str.getType().getUnderlyingType() instanceof StringType and
116116
read.getIndex().getIntValue() = 0
117117
)

0 commit comments

Comments
 (0)