Skip to content
Snippets Groups Projects
Commit 5b462cfb authored by Yorhel's avatar Yorhel
Browse files

Fix export feature

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

Fixes #179.
parent 7efd2c62
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment