commit 4e0338c7d000d3003064b5f222f8db481ce14228
parent 7ed35bfbb13dc9a9abf45396bee934f317fe4f70
Author: Carlos Une <une@fastmail.fm>
Date: Wed, 12 Oct 2022 22:59:26 -0300
Minor fix due to breaking change to strings::fromutf8
Signed-off-by: Carlos Une <une@fastmail.fm>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/os/+linux/environ+libc.ha b/os/+linux/environ+libc.ha
@@ -49,7 +49,7 @@ export fn getenv(name: const str) (str | void) = {
};
if (bytes::equal(name_b, item[..eq])) {
const ln = strings::cstrlen(item: *const char);
- return strings::fromutf8(item[eq+1..ln]);
+ return strings::fromutf8(item[eq+1..ln])!;
};
};
};