aboutsummaryrefslogtreecommitdiff
path: root/src/libc_installation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-11-30 01:44:34 -0500
committerGitHub <noreply@github.com>2022-11-30 01:44:34 -0500
commite35f297aeb993ec956ae80379ddf7f86069e109b (patch)
tree45cbb5b3ebbe23a46e27b04aa5898a6c00ec4a61 /src/libc_installation.zig
parentdeda6b514691c3a7ffc7931469886d0e7be2f67e (diff)
parentf4666678886c2a7a993ad30b63de4ff25594085a (diff)
downloadzig-e35f297aeb993ec956ae80379ddf7f86069e109b.tar.gz
zig-e35f297aeb993ec956ae80379ddf7f86069e109b.zip
Merge pull request #13666 from ziglang/allocator-interface
std.mem.Allocator: allow shrink to fail
Diffstat (limited to 'src/libc_installation.zig')
-rw-r--r--src/libc_installation.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libc_installation.zig b/src/libc_installation.zig
index 77d8571eae..0a50f97012 100644
--- a/src/libc_installation.zig
+++ b/src/libc_installation.zig
@@ -387,7 +387,7 @@ pub const LibCInstallation = struct {
else => return error.FileSystem,
};
- self.include_dir = result_buf.toOwnedSlice();
+ self.include_dir = try result_buf.toOwnedSlice();
return;
}
@@ -434,7 +434,7 @@ pub const LibCInstallation = struct {
else => return error.FileSystem,
};
- self.crt_dir = result_buf.toOwnedSlice();
+ self.crt_dir = try result_buf.toOwnedSlice();
return;
}
return error.LibCRuntimeNotFound;
@@ -499,7 +499,7 @@ pub const LibCInstallation = struct {
else => return error.FileSystem,
};
- self.kernel32_lib_dir = result_buf.toOwnedSlice();
+ self.kernel32_lib_dir = try result_buf.toOwnedSlice();
return;
}
return error.LibCKernel32LibNotFound;