1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: disallow struct int to ptr outside unsafe (#17923)

This commit is contained in:
Swastik Baranwal
2023-04-13 11:08:21 +05:30
committed by GitHub
parent 92cb7468ce
commit 3d99f1f2c2
36 changed files with 124 additions and 47 deletions

View File

@ -63,7 +63,7 @@ fn C.mysql_stmt_next_result(&C.MYSQL_STMT) int
fn C.mysql_stmt_store_result(&C.MYSQL_STMT) int
pub struct Stmt {
stmt &C.MYSQL_STMT = &C.MYSQL_STMT(0)
stmt &C.MYSQL_STMT = &C.MYSQL_STMT(unsafe { nil })
query string
mut:
binds []C.MYSQL_BIND