mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
Fix initialization of struct members (wrong order)
This commit is contained in:
parent
d8e3b9aafc
commit
6a47629530
1 changed files with 12 additions and 2 deletions
|
@ -60,12 +60,22 @@ struct NarAccessor : public SourceAccessor
|
||||||
|
|
||||||
void createDirectory(const Path & path) override
|
void createDirectory(const Path & path) override
|
||||||
{
|
{
|
||||||
createMember(path, {Type::tDirectory, false, 0, 0});
|
createMember(path, NarMember{ .stat = {
|
||||||
|
.type = Type::tDirectory,
|
||||||
|
.fileSize = 0,
|
||||||
|
.isExecutable = false,
|
||||||
|
.narOffset = 0
|
||||||
|
} });
|
||||||
}
|
}
|
||||||
|
|
||||||
void createRegularFile(const Path & path) override
|
void createRegularFile(const Path & path) override
|
||||||
{
|
{
|
||||||
createMember(path, {Type::tRegular, false, 0, 0});
|
createMember(path, NarMember{ .stat = {
|
||||||
|
.type = Type::tRegular,
|
||||||
|
.fileSize = 0,
|
||||||
|
.isExecutable = false,
|
||||||
|
.narOffset = 0
|
||||||
|
} });
|
||||||
}
|
}
|
||||||
|
|
||||||
void closeRegularFile() override
|
void closeRegularFile() override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue