about summary refs log tree commit diff
path: root/third_party/nix/src/libutil/config.cc
diff options
context:
space:
mode:
authorLuke Granger-Brown <hg@lukegb.com>2020-06-21T20·39+0100
committerlukegb <lukegb@tvl.fyi>2020-06-21T23·49+0000
commit4ea8cc373002ec547458c2ea8114f9a83222a4a2 (patch)
tree30bb313fa318db24f58b48df5d3f8d4eb9a454c5 /third_party/nix/src/libutil/config.cc
parent8b83e0f31b7d4b56718a634ebdbc22b18728d384 (diff)
fix(3p/nix): allow blank lines in nix.conf r/1053
Change-Id: I5ab040a62e123c57fe712b252fbf84fe5a8bc026
Reviewed-on: https://cl.tvl.fyi/c/depot/+/547
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party/nix/src/libutil/config.cc')
-rw-r--r--third_party/nix/src/libutil/config.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/nix/src/libutil/config.cc b/third_party/nix/src/libutil/config.cc
index ebb6b4df1d70..20c70c823f7e 100644
--- a/third_party/nix/src/libutil/config.cc
+++ b/third_party/nix/src/libutil/config.cc
@@ -103,7 +103,7 @@ void AbstractConfig::applyConfigFile(const Path& path) {
 
       // TODO(tazjin): absl::string_view after path functions are fixed.
       std::vector<std::string> tokens =
-          absl::StrSplit(line, absl::ByAnyChar(" \t\n\r"));
+          absl::StrSplit(line, absl::ByAnyChar(" \t\n\r"), absl::SkipWhitespace());
       if (tokens.empty()) {
         continue;
       }