Skip to content

Commit 3f3a5d3

Browse files
committed
Swift: Fix the SQL injection test.
1 parent 98e5f0f commit 3f3a5d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift/ql/test/query-tests/Security/CWE-089/sqlite3_c_api.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ struct URL
66
init?(string: String) {}
77
init?(string: String, relativeTo: URL?) {}
88
}
9-
10-
struct Data {
9+
protocol DataProtocol { }
10+
struct Data : DataProtocol {
1111
init<S>(_ elements: S) { count = 0 }
1212

1313
var count: Int

0 commit comments

Comments
 (0)