diff options
author | Yorhel <git@yorhel.nl> | 2021-11-02 15:29:10 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-11-02 15:29:12 +0100 |
commit | 5b462cfb7a0486db20e0a3e83af899b4b768ec6f (patch) | |
tree | 5ea3552f949b6350fbaa118293c2464ea0a2ce37 | |
parent | 7efd2c6251832e70180b0fe8a58700fe901fe8d9 (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.zig | 2 |
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, |