Commit 3b0fe534bc

Andrew Kelley <superjoe30@gmail.com>
2017-10-15 07:24:39
fix regression on posix from previous commit
1 parent 8ab5313
Changed files (1)
std
std/os/index.zig
@@ -504,7 +504,7 @@ pub fn getEnvVarOwned(allocator: &mem.Allocator, key: []const u8) -> %[]u8 {
         }
     } else {
         const result = getEnvPosix(key) ?? return error.EnvironmentVariableNotFound;
-        return mem.dupe(u8, allocator, result);
+        return mem.dupe(allocator, u8, result);
     }
 }