diff options
Diffstat (limited to 'src/Handover.zig')
| -rw-r--r-- | src/Handover.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Handover.zig b/src/Handover.zig index e9e0622b..ed52271f 100644 --- a/src/Handover.zig +++ b/src/Handover.zig @@ -223,10 +223,10 @@ fn dumpCarried(p: *Pardes, kind: Kind, at: usize, ids: []const usize, seq: u32) /// Whether `bytes` are a handover's dump (`dumpCarried`'s, or an older /// build's), not a session's. -pub fn carries(bytes: []const u8) bool { +pub fn carries(gpa: std.mem.Allocator, bytes: []const u8) bool { if (std.mem.startsWith(u8, bytes, carried_magic)) return true; if (!pardes.Db.isImage(bytes)) return false; - const r = pardes.Db.Read.open(std.heap.page_allocator, bytes, null) catch return false; + const r = pardes.Db.Read.open(gpa, bytes, null) catch return false; defer r.close(); return (walk.Get.member(r.root(), "carried") catch null) != null; } |
