diff options
| author | Brendan Burns <bburns@microsoft.com> | 2022-12-29 17:38:19 -0800 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-12-30 17:23:31 +0200 |
| commit | c679fdee7fa4999d79ba741aeefa1cf7e1756f0b (patch) | |
| tree | 3c0ab1c23eb04a1373c5b4cfd5b083d323d30ff8 /lib/std/process.zig | |
| parent | f8f1c6ac06636d816e5dff205d6713a337df387d (diff) | |
| download | zig-c679fdee7fa4999d79ba741aeefa1cf7e1756f0b.tar.gz zig-c679fdee7fa4999d79ba741aeefa1cf7e1756f0b.zip | |
Fix bug in WASI envmap handling.
Diffstat (limited to 'lib/std/process.zig')
| -rw-r--r-- | lib/std/process.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/process.zig b/lib/std/process.zig index 849596ebfa..bcd0d5bfa9 100644 --- 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; |
