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:
@@ -194,7 +194,7 @@ pub fn resolve_ipaddrs(addr string, family AddrFamily, typ SocketType) ![]Addr {
|
||||
hints.ai_socktype = int(typ)
|
||||
hints.ai_flags = C.AI_PASSIVE
|
||||
|
||||
results := &C.addrinfo(0)
|
||||
results := &C.addrinfo(unsafe { nil })
|
||||
|
||||
sport := '${port}'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user