summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-11-02 15:29:10 +0100
committerYorhel <git@yorhel.nl>2021-11-02 15:29:12 +0100
commit5b462cfb7a0486db20e0a3e83af899b4b768ec6f (patch)
tree5ea3552f949b6350fbaa118293c2464ea0a2ce37
parent7efd2c6251832e70180b0fe8a58700fe901fe8d9 (diff)
Fix export feature
...by making sure that Context.parents is properly initialized to null when not scanning to RAM. Fixes #179.
-rw-r--r--src/scan.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scan.zig b/src/scan.zig
index 3872a72..ed92a35 100644
--- a/src/scan.zig
+++ b/src/scan.zig
@@ -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,