From e415713f380916eed1f5dac4f45042f7461c5f8a Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 21 Mar 2021 17:49:30 -0400 Subject: Handle line with whitespace gracefully --- datatest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'datatest.cpp') diff --git a/datatest.cpp b/datatest.cpp index 9155e83d..2338b9fc 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -1120,6 +1120,7 @@ bool GetField(std::istream &is, std::string &name, std::string &value) while (Readline(is, line)) { // Eat empty lines and comments gracefully + line = TrimSpace(line); if (line.empty() || line[0] == '#') continue; -- cgit v1.2.1