Bin export: fix incorrectly setting prev=0 on the root node

This commit is contained in:
Yorhel 2024-10-29 14:45:10 +01:00
parent df5845baad
commit bdc730f1e5

View file

@ -390,7 +390,7 @@ pub const Dir = struct {
p.last_sub = t.itemStart(.dir, p.last_sub, name); p.last_sub = t.itemStart(.dir, p.last_sub, name);
} else { } else {
d.countLinks(null); d.countLinks(null);
global.root_itemref = t.itemStart(.dir, 0, name); global.root_itemref = t.itemStart(.dir, null, name);
} }
d.inodes.deinit(); d.inodes.deinit();