diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-02-13 16:12:16 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-02-13 16:12:16 +0100 |
commit | d8972317fc4314864619cadd5620ae780da657a3 (patch) | |
tree | 36ae248e7e893bfa14f30acd619cd3b7ee98143b /src/libutil | |
parent | 94c934370225a5e1fbf84959fc759b19893c2081 (diff) |
Prevent uninitialized StorePath creation
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/rust-ffi.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/rust-ffi.hh b/src/libutil/rust-ffi.hh index 469a5fba3..228e2eead 100644 --- a/src/libutil/rust-ffi.hh +++ b/src/libutil/rust-ffi.hh @@ -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); |