mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-14 17:58:40 -09:00
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:
parent
7efd2c6251
commit
5b462cfb7a
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ const ScanDir = struct {
|
||||||
//
|
//
|
||||||
const Context = struct {
|
const Context = struct {
|
||||||
// When scanning to RAM
|
// When scanning to RAM
|
||||||
parents: ?std.ArrayList(ScanDir) = std.ArrayList(ScanDir).init(main.allocator),
|
parents: ?std.ArrayList(ScanDir) = null,
|
||||||
// When scanning to a file
|
// When scanning to a file
|
||||||
wr: ?*Writer = null,
|
wr: ?*Writer = null,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue