zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c679fdee7fa4999d79ba741aeefa1cf7e1756f0b (tree)
parent f8f1c6ac06636d816e5dff205d6713a337df387d
Author: Brendan Burns <bburns@microsoft.com>
Date:   Thu, 29 Dec 2022 17:38:19 -0800

Fix bug in WASI envmap handling.
Diffstat:
Mlib/std/process.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/process.zig b/lib/std/process.zig @@ -307,7 +307,7 @@ pub fn getEnvMap(allocator: Allocator) !EnvMap { const pair = mem.sliceTo(env, 0); var parts = mem.split(u8, pair, "="); const key = parts.first(); - const value = parts.next().?; + const value = parts.rest(); try result.put(key, value); } return result;