mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
Prevent uninitialized StorePath creation
This commit is contained in:
parent
94c9343702
commit
d8972317fc
3 changed files with 6 additions and 2 deletions
|
@ -18,6 +18,8 @@ extern "C" {
|
|||
|
||||
struct StorePath : rust::Value<3 * sizeof(void *) + 24, ffi_StorePath_drop>
|
||||
{
|
||||
StorePath() = delete;
|
||||
|
||||
static StorePath make(std::string_view path, std::string_view storeDir);
|
||||
|
||||
static StorePath make(unsigned char hash[20], std::string_view name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue