diff options
Diffstat (limited to 'third_party/nix/src/libstore/nar-info.cc')
-rw-r--r-- | third_party/nix/src/libstore/nar-info.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/libstore/nar-info.cc b/third_party/nix/src/libstore/nar-info.cc index ec9f882f4fb4..d42167dbfa69 100644 --- a/third_party/nix/src/libstore/nar-info.cc +++ b/third_party/nix/src/libstore/nar-info.cc @@ -62,7 +62,8 @@ NarInfo::NarInfo(const Store& store, const std::string& s, corrupt(); } } else if (name == "References") { - std::vector<std::string> refs = absl::StrSplit(value, absl::ByChar(' ')); + std::vector<std::string> refs = + absl::StrSplit(value, absl::ByChar(' '), absl::SkipEmpty()); if (!references.empty()) { corrupt(); } |