mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add temp allocator guard; clean up indentation
This commit is contained in:
@@ -334,6 +334,7 @@ fork :: proc() -> (Pid, Errno) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
execvp :: proc(path: string, args: []string) -> Errno {
|
execvp :: proc(path: string, args: []string) -> Errno {
|
||||||
|
runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD()
|
||||||
path_cstr := strings.clone_to_cstring(path, context.temp_allocator)
|
path_cstr := strings.clone_to_cstring(path, context.temp_allocator)
|
||||||
|
|
||||||
args_cstrs := make([]cstring, len(args) + 2, context.temp_allocator)
|
args_cstrs := make([]cstring, len(args) + 2, context.temp_allocator)
|
||||||
|
|||||||
Reference in New Issue
Block a user