mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add missing allocator in os2.file_info_clone
This commit is contained in:
@@ -24,7 +24,7 @@ File_Info :: struct {
|
|||||||
@(require_results)
|
@(require_results)
|
||||||
file_info_clone :: proc(fi: File_Info, allocator: runtime.Allocator) -> (cloned: File_Info, err: runtime.Allocator_Error) {
|
file_info_clone :: proc(fi: File_Info, allocator: runtime.Allocator) -> (cloned: File_Info, err: runtime.Allocator_Error) {
|
||||||
cloned = fi
|
cloned = fi
|
||||||
cloned.fullpath = strings.clone(fi.fullpath) or_return
|
cloned.fullpath = strings.clone(fi.fullpath, allocator) or_return
|
||||||
cloned.name = filepath.base(cloned.fullpath)
|
cloned.name = filepath.base(cloned.fullpath)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user