1
0
Fork 0
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:
Eelco Dolstra 2020-02-13 16:12:16 +01:00
parent 94c9343702
commit d8972317fc
3 changed files with 6 additions and 2 deletions

View file

@ -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);