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:
@@ -272,7 +272,7 @@ pub fn ls(path string) ![]string {
|
||||
if isnil(dir) {
|
||||
return error('ls() couldnt open dir "${path}"')
|
||||
}
|
||||
mut ent := &C.dirent(0)
|
||||
mut ent := &C.dirent(unsafe { nil })
|
||||
// mut ent := &C.dirent{!}
|
||||
for {
|
||||
ent = C.readdir(dir)
|
||||
|
Reference in New Issue
Block a user