missing allocgate fix

This commit is contained in:
Loris Cro 2021-12-16 18:06:39 +01:00 committed by Felix Queißner
parent 0c6c4849dd
commit 26d434ec2b

View File

@ -139,7 +139,7 @@ fn getPathXdg(allocator: std.mem.Allocator, arena: *std.heap.ArenaAllocator, fol
// TODO: add caching so we only need to read once in a run
if (env_opt == null and folder_spec.env.user_dir) block: {
const config_dir_path = if (std.io.is_async) blk: {
var frame = arena.allocator.create(@Frame(getPathXdg)) catch break :block;
var frame = arena.allocator().create(@Frame(getPathXdg)) catch break :block;
_ = @asyncCall(frame, {}, getPathXdg, .{ arena.allocator(), arena, .local_configuration });
break :blk (await frame) catch null orelse break :block;
} else blk: {