diff options
Diffstat (limited to 'third_party/nix/src/nix-daemon')
-rw-r--r-- | third_party/nix/src/nix-daemon/nix-daemon-legacy.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/nix-daemon/nix-daemon-legacy.cc b/third_party/nix/src/nix-daemon/nix-daemon-legacy.cc index cbd64a69aa6d..97cf5195d35c 100644 --- a/third_party/nix/src/nix-daemon/nix-daemon-legacy.cc +++ b/third_party/nix/src/nix-daemon/nix-daemon-legacy.cc @@ -533,7 +533,8 @@ static void performOp(TunnelLogger* logger, const ref<Store>& store, trusted.insert(s); } Strings subs; - Strings ss = absl::StrSplit(value, absl::ByAnyChar(" \t\n\r")); + Strings ss = absl::StrSplit(value, absl::ByAnyChar(" \t\n\r"), + absl::SkipEmpty()); for (auto& s : ss) { if (trusted.count(s) != 0u) { subs.push_back(s); |