Fix bug in WASI envmap handling.

This commit is contained in:
Brendan Burns 2022-12-29 17:38:19 -08:00 committed by Veikka Tuominen
parent f8f1c6ac06
commit c679fdee7f

View File

@ -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;