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:
@@ -1355,7 +1355,7 @@ fn (mut dl Dlmalloc) segment_holding(ptr voidptr) &Segment {
|
||||
}
|
||||
sp = sp.next
|
||||
}
|
||||
return &Segment(0)
|
||||
return &Segment(unsafe { nil })
|
||||
}
|
||||
|
||||
// realloc behaves as libc realloc, but operates within the given space
|
||||
|
||||
Reference in New Issue
Block a user