From 4ea8cc373002ec547458c2ea8114f9a83222a4a2 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 21 Jun 2020 21:39:49 +0100 Subject: fix(3p/nix): allow blank lines in nix.conf Change-Id: I5ab040a62e123c57fe712b252fbf84fe5a8bc026 Reviewed-on: https://cl.tvl.fyi/c/depot/+/547 Reviewed-by: tazjin --- third_party/nix/src/libutil/config.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'third_party') 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 tokens = - absl::StrSplit(line, absl::ByAnyChar(" \t\n\r")); + absl::StrSplit(line, absl::ByAnyChar(" \t\n\r"), absl::SkipWhitespace()); if (tokens.empty()) { continue; } -- cgit 1.4.1