1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +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

@ -113,6 +113,8 @@ extern "C" {
struct String : Vec<char, ffi_String_drop>
{
String() = delete;
String(std::string_view s)
{
ffi_String_new(StringSlice(s), this);