Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66d8943

Browse files
committed
C++: Minor bug fix.
1 parent 25200b4 commit 66d8943

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/ql/lib/semmle/code/cpp/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private predicate relevantNamespace(string namespace) {
183183
private predicate namespaceLink(string shortns, string longns) {
184184
relevantNamespace(shortns) and
185185
relevantNamespace(longns) and
186-
longns.prefix(longns.indexOf(".")) = shortns
186+
longns.prefix(longns.indexOf("::")) = shortns
187187
}
188188

189189
private predicate canonicalNamespace(string namespace) {

0 commit comments

Comments
 (0)