We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f23bba commit 10a2093Copy full SHA for 10a2093
src/lib/GenericOS.rs
@@ -1,6 +1,6 @@
1
fn getenv(str n) -> Option.t[str] {
2
auto s = OS.libc.getenv(Str.buf(n));
3
- if (s == 0 as Str.sbuf) {
+ if ((s as int) == 0) {
4
ret Option.none[str];
5
} else {
6
ret Option.some[str](Str.str_from_cstr(s));
0 commit comments