Fix export feature

...by making sure that Context.parents is properly initialized to null
when not scanning to RAM.

Fixes #179.
This commit is contained in:
Yorhel 2021-11-02 15:29:10 +01:00
parent 7efd2c6251
commit 5b462cfb7a

View file

@ -263,7 +263,7 @@ const ScanDir = struct {
//
const Context = struct {
// When scanning to RAM
parents: ?std.ArrayList(ScanDir) = std.ArrayList(ScanDir).init(main.allocator),
parents: ?std.ArrayList(ScanDir) = null,
// When scanning to a file
wr: ?*Writer = null,