mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
cleanup: remove leftover line
This commit is contained in:
@@ -894,7 +894,6 @@ get_env :: proc(key: string, allocator := context.allocator) -> (value: string)
|
|||||||
|
|
||||||
set_env :: proc(key, value: string) -> Errno {
|
set_env :: proc(key, value: string) -> Errno {
|
||||||
runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD()
|
runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD()
|
||||||
s := strings.concatenate({key, "=", value, "\x00"}, context.temp_allocator)
|
|
||||||
key_cstring := strings.unsafe_string_to_cstring(strings.concatenate({key, "\x00"}, context.temp_allocator))
|
key_cstring := strings.unsafe_string_to_cstring(strings.concatenate({key, "\x00"}, context.temp_allocator))
|
||||||
value_cstring := strings.unsafe_string_to_cstring(strings.concatenate({value, "\x00"}, context.temp_allocator))
|
value_cstring := strings.unsafe_string_to_cstring(strings.concatenate({value, "\x00"}, context.temp_allocator))
|
||||||
// NOTE(GoNZooo): `setenv` instead of `putenv` because it copies both key and value more commonly
|
// NOTE(GoNZooo): `setenv` instead of `putenv` because it copies both key and value more commonly
|
||||||
|
|||||||
Reference in New Issue
Block a user