mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: use malloc_noscan() where possible (#10465)
This commit is contained in:
@@ -42,7 +42,7 @@ pub fn resource_path() string {
|
||||
panic('CFBundleCopyResourcesDirectoryURL failed')
|
||||
}
|
||||
buffer_size := 4096
|
||||
mut buffer := unsafe { malloc(buffer_size) }
|
||||
mut buffer := unsafe { malloc_noscan(buffer_size) }
|
||||
unsafe {
|
||||
buffer[0] = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user