From 84aa05f8fb97266e1bde2850715f07f993f975da Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 22 Nov 2021 11:07:26 +0200 Subject: [PATCH] ci: fix macos build --- vlib/os/os.c.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/os/os.c.v b/vlib/os/os.c.v index fee4a52270..41d737e2f7 100644 --- a/vlib/os/os.c.v +++ b/vlib/os/os.c.v @@ -646,13 +646,13 @@ pub fn executable() string { final_len := C.GetFinalPathNameByHandleW(file, unsafe { &u16(final_path) }, size, 0) if final_len < size { - ret := unsafe { string_from_wide2(&u16(final_path), final_len) } + sret := unsafe { string_from_wide2(&u16(final_path), final_len) } defer { - unsafe { ret.free() } + unsafe { sret.free() } } // remove '\\?\' from beginning (see link above) - ret_slice := ret[4..] - res := ret_slice.clone() + sret_slice := sret[4..] + res := sret_slice.clone() return res } else { eprintln('os.executable() saw that the executable file path was too long')